Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lcoustillac committed Nov 6, 2023
1 parent 9443ccf commit a83d5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wikitools3/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self, wiki, data, write=False, multipart=False):
self.response = False
if wiki.auth:
self.headers["Authorization"] = "Basic {0}".format(
base64.encodestring(f"{wiki.auth}:{wiki.httppass}")
base64.encodestring(f"{wiki.auth}:{wiki.httppass}".encode()).decode()
).replace("\n", "")
if hasattr(wiki, "passman"):
self.opener = urllib.request.build_opener(
Expand Down

0 comments on commit a83d5d4

Please sign in to comment.