mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
Don't use a deprecated API.
This commit is contained in:
parent
a1424e90e1
commit
f549488bb5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user