mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Fixed #7552: fixed distutils.command.upload failure on very long passwords
This commit is contained in:
parent
603ae9e371
commit
2421d56e02
3 changed files with 33 additions and 8 deletions
|
@ -6,7 +6,7 @@ import os
|
|||
import socket
|
||||
import platform
|
||||
from urllib2 import urlopen, Request, HTTPError
|
||||
import base64
|
||||
from base64 import standard_b64encode
|
||||
import urlparse
|
||||
import cStringIO as StringIO
|
||||
from ConfigParser import ConfigParser
|
||||
|
@ -129,8 +129,8 @@ class upload(PyPIRCCommand):
|
|||
open(filename+".asc").read())
|
||||
|
||||
# set up the authentication
|
||||
auth = "Basic " + base64.encodestring(self.username + ":" +
|
||||
self.password).strip()
|
||||
auth = "Basic " + standard_b64encode(self.username + ":" +
|
||||
self.password)
|
||||
|
||||
# Build up the MIME payload for the POST data
|
||||
boundary = '--------------GHSKFJDLGDS7543FJKLFHRE75642756743254'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue