More codestring -> codebytes.

This commit is contained in:
Georg Brandl 2009-06-04 09:42:55 +00:00
parent 3ed0deb9af
commit 706824f19f
10 changed files with 16 additions and 15 deletions

View file

@ -127,7 +127,7 @@ class upload(PyPIRCCommand):
user_pass = (self.username + ":" + self.password).encode('ascii')
# The exact encoding of the authentication string is debated.
# Anyway PyPI only accepts ascii for both username or password.
auth = "Basic " + base64.encodestring(user_pass).strip().decode('ascii')
auth = "Basic " + base64.encodebytes(user_pass).strip().decode('ascii')
# Build up the MIME payload for the POST data
boundary = '--------------GHSKFJDLGDS7543FJKLFHRE75642756743254'