summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-28 23:05:26 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-28 23:05:26 (GMT)
commit24319ac40737a3c305bbadca4f89c607a54ec967 (patch)
tree613d13900c09343a8697a91a7707bb6f35d78432 /Lib/distutils
parentf29435f9f0659d433ed2e0e3e8b9c15a4c7155fd (diff)
downloadcpython-24319ac40737a3c305bbadca4f89c607a54ec967.zip
cpython-24319ac40737a3c305bbadca4f89c607a54ec967.tar.gz
cpython-24319ac40737a3c305bbadca4f89c607a54ec967.tar.bz2
Issue #10571: Fix the "--sign" option of distutils' upload command.
Patch by Jakub Wilk.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/upload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/upload.py b/Lib/distutils/command/upload.py
index 4926aa3..8b36851 100644
--- a/Lib/distutils/command/upload.py
+++ b/Lib/distutils/command/upload.py
@@ -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')