Issue #10571: Fix the "--sign" option of distutils' upload command.

Patch by Jakub Wilk.
This commit is contained in:
Antoine Pitrou 2012-06-29 01:06:51 +02:00
commit c92448beba
3 changed files with 5 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class upload(PyPIRCCommand):
if self.sign:
data['gpg_signature'] = (os.path.basename(filename) + ".asc",
open(filename+".asc").read())
open(filename+".asc", "rb").read())
# set up the authentication
user_pass = (self.username + ":" + self.password).encode('ascii')

View File

@ -1116,6 +1116,7 @@ Felix Wiemann
Gerry Wiener
Frank Wierzbicki
Bryce "Zooko" Wilcox-O'Hearn
Jakub Wilk
Gerald S. Williams
Jason Williams
John Williams

View File

@ -14,6 +14,9 @@ Core and Builtins
Library
-------
- Issue #10571: Fix the "--sign" option of distutils' upload command.
Patch by Jakub Wilk.
- Issue #9559: If messages were only added, a new file is no longer
created and renamed over the old file when flush() is called on an
mbox, MMDF or Babyl mailbox.