Commit 921b93fe authored by Antoine Pitrou's avatar Antoine Pitrou

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

Patch by Jakub Wilk.
parent 2b4009c7
......@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment