diff options
Diffstat (limited to 'setuptools/command/upload_docs.py')
-rw-r--r-- | setuptools/command/upload_docs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py index e961a0df..381ba1df 100644 --- a/setuptools/command/upload_docs.py +++ b/setuptools/command/upload_docs.py @@ -92,7 +92,7 @@ class upload_docs(upload): try: # base64 only works with bytes in Python 3. encoded_creds = base64.encodebytes(credentials.encode('utf8')) auth = b"Basic " - except AttributeError: + except (AttributeError, SyntaxError): encoded_creds = base64.encodestring(credentials) auth = "Basic " auth += encoded_creds.strip() |