mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
More codestring -> codebytes.
This commit is contained in:
parent
3ed0deb9af
commit
706824f19f
10 changed files with 16 additions and 15 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue