mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #10571: Fix the "--sign" option of distutils' upload command.
Patch by Jakub Wilk.
This commit is contained in:
parent
f29435f9f0
commit
24319ac407
3 changed files with 5 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue