Commit 76b70364 authored by Jason R. Coombs's avatar Jason R. Coombs

Use PY3 indicator

parent 5745e031
......@@ -118,7 +118,7 @@ class upload_docs(upload):
# set up the authentication
credentials = b(self.username + ':' + self.password)
credentials = standard_b64encode(credentials)
if sys.version_info >= (3,):
if PY3:
credentials = credentials.decode('ascii')
auth = "Basic " + credentials
......
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