From 8b1e0905135c56a9f66d5d6043ba33ac4ffab435 Mon Sep 17 00:00:00 2001 From: "\"Brett Cannon ext:(%22)" Date: Sun, 17 Jan 2010 12:55:33 -0800 Subject: Add back in a missing space between "Basic" and the base64-encoded credentials for uploading docs. --HG-- branch : distribute extra : rebase_source : 0de13aa44d415d7afef4218190ef0742999630ff --- setuptools/command/upload_docs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setuptools/command/upload_docs.py') diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py index 566a7268..46e06bc6 100644 --- a/setuptools/command/upload_docs.py +++ b/setuptools/command/upload_docs.py @@ -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 -- cgit v1.2.1