Commits

"Bre...@python.org>"  committed fe06f9e

Add back in a missing space between "Basic" and the base64-encoded
credentials for uploading docs.

  • Participants
  • Parent commits 67da0cf
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

File setuptools/command/upload_docs.py

         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