1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

Fix deprecated base64 method

This commit is contained in:
thatmattlove
2021-09-13 02:33:22 -07:00
parent 21831d4766
commit c7292dadd3

View File

@ -92,7 +92,7 @@ class Http(HyperglassModel, extra="allow"):
else:
dumped["auth"] = self.authentication.basic()
self._obscured_params = base64.encodestring(str(dumped).encode())
self._obscured_params = base64.encodebytes(str(dumped).encode())
def decoded(self):
"""Decode connection details."""