mirror of
https://github.com/python/cpython.git
synced 2025-08-17 23:31:09 +00:00
Merged revisions 76952 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76952 | tarek.ziade | 2009-12-21 00:23:34 +0100 (Mon, 21 Dec 2009) | 1 line Fixed #7552: fixed distutils.command.upload failure on very long passwords ........
This commit is contained in:
parent
59a389898e
commit
e220d67939
4 changed files with 112 additions and 4 deletions
|
@ -11,7 +11,7 @@ import os
|
|||
import socket
|
||||
import platform
|
||||
import httplib
|
||||
import base64
|
||||
from base64 import standard_b64encode
|
||||
import urlparse
|
||||
import cStringIO as StringIO
|
||||
from ConfigParser import ConfigParser
|
||||
|
@ -115,7 +115,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