Don't use a deprecated API.

This commit is contained in:
Itamar Turner-Trauring 2021-11-16 11:47:09 -05:00
parent a1424e90e1
commit f549488bb5

View File

@ -42,7 +42,7 @@ def _decode_cbor(response):
def swissnum_auth_header(swissnum): # type: (bytes) -> bytes
"""Return value for ``Authentication`` header."""
return b"Tahoe-LAFS " + base64.encodestring(swissnum).strip()
return b"Tahoe-LAFS " + base64.b64encode(swissnum).strip()
class StorageClient(object):