(original) (raw)

changeset: 77837:b45f105dbdfb parent: 77835:9134bb4d0578 parent: 77836:ef16a3db4628 user: Antoine Pitrou solipsis@pitrou.net date: Fri Jun 29 01:06:51 2012 +0200 files: Misc/ACKS Misc/NEWS description: Issue #10571: Fix the "--sign" option of distutils' upload command. Patch by Jakub Wilk. diff -r 9134bb4d0578 -r b45f105dbdfb Lib/distutils/command/upload.py --- a/Lib/distutils/command/upload.py Thu Jun 28 15:30:47 2012 +0200 +++ b/Lib/distutils/command/upload.py Fri Jun 29 01:06:51 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 9134bb4d0578 -r b45f105dbdfb Misc/ACKS --- a/Misc/ACKS Thu Jun 28 15:30:47 2012 +0200 +++ b/Misc/ACKS Fri Jun 29 01:06:51 2012 +0200 @@ -1116,6 +1116,7 @@ Gerry Wiener Frank Wierzbicki Bryce "Zooko" Wilcox-O'Hearn +Jakub Wilk Gerald S. Williams Jason Williams John Williams diff -r 9134bb4d0578 -r b45f105dbdfb Misc/NEWS --- a/Misc/NEWS Thu Jun 28 15:30:47 2012 +0200 +++ b/Misc/NEWS Fri Jun 29 01:06:51 2012 +0200 @@ -14,6 +14,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