summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-06-04 09:42:55 (GMT)
committerGeorg Brandl <georg@python.org>2009-06-04 09:42:55 (GMT)
commit706824f19f734e5e567f32d989376547c0ae08da (patch)
tree0cd5ff7ccc373a848f409b572f1bd1ae727fd8fe /Lib/distutils/command
parent3ed0deb9af03c3546ebe583c38ccfd0c5e364196 (diff)
downloadcpython-706824f19f734e5e567f32d989376547c0ae08da.zip
cpython-706824f19f734e5e567f32d989376547c0ae08da.tar.gz
cpython-706824f19f734e5e567f32d989376547c0ae08da.tar.bz2
More codestring -> codebytes.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/upload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/upload.py b/Lib/distutils/command/upload.py
index 9249427..3b4a036 100644
--- a/Lib/distutils/command/upload.py
+++ b/Lib/distutils/command/upload.py
@@ -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'