(original) (raw)

changeset: 77836:ef16a3db4628 branch: 3.2 parent: 77833:5f447a005d67 user: Antoine Pitrou solipsis@pitrou.net date: Fri Jun 29 01:05:26 2012 +0200 files: Lib/distutils/command/upload.py Misc/ACKS Misc/NEWS description: Issue #10571: Fix the "--sign" option of distutils' upload command. Patch by Jakub Wilk. diff -r 5f447a005d67 -r ef16a3db4628 Lib/distutils/command/upload.py --- a/Lib/distutils/command/upload.py Thu Jun 28 13:48:17 2012 +0300 +++ b/Lib/distutils/command/upload.py Fri Jun 29 01:05:26 2012 +0200 @@ -125,7 +125,7 @@ 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') diff -r 5f447a005d67 -r ef16a3db4628 Misc/ACKS --- a/Misc/ACKS Thu Jun 28 13:48:17 2012 +0300 +++ b/Misc/ACKS Fri Jun 29 01:05:26 2012 +0200 @@ -1009,6 +1009,7 @@ Gerry Wiener Frank Wierzbicki Bryce "Zooko" Wilcox-O'Hearn +Jakub Wilk Jason Williams John Williams Sue Williams diff -r 5f447a005d67 -r ef16a3db4628 Misc/NEWS --- a/Misc/NEWS Thu Jun 28 13:48:17 2012 +0300 +++ b/Misc/NEWS Fri Jun 29 01:05:26 2012 +0200 @@ -81,6 +81,9 @@ 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. /solipsis@pitrou.net