Add back in a missing space between "Basic" and the base64-encoded

credentials for uploading docs.

--HG--
branch : distribute
extra : rebase_source : 0de13aa44d415d7afef4218190ef0742999630ff
parent eca7db80
......@@ -78,10 +78,10 @@ class upload_docs(upload):
credentials = self.username + ':' + self.password
try: # base64 only works with bytes in Python 3.
encoded_creds = base64.encodebytes(credentials.encode('utf8'))
auth = b"Basic"
auth = b"Basic "
except AttributeError:
encoded_creds = base64.encodestring(credentials)
auth = "Basic"
auth = "Basic "
auth += encoded_creds.strip()
# Build up the MIME payload for the POST data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment