Mercurial > cpython-lru_cache-weakref
diff Lib/distutils/command/upload.py @ 77836:ef16a3db4628 3.2
Issue #10571: Fix the "--sign" option of distutils' upload command.
Patch by Jakub Wilk.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Fri, 29 Jun 2012 01:05:26 +0200 |
| parents | 3c9232a684ae |
| children | 5e98c4e9c909 50d19c2fac82 |
line wrap: on
line diff
--- 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')
