Commit 24319ac4 authored by Antoine Pitrou's avatar Antoine Pitrou

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

Patch by Jakub Wilk.
parent f29435f9
...@@ -125,7 +125,7 @@ class upload(PyPIRCCommand): ...@@ -125,7 +125,7 @@ class upload(PyPIRCCommand):
if self.sign: if self.sign:
data['gpg_signature'] = (os.path.basename(filename) + ".asc", data['gpg_signature'] = (os.path.basename(filename) + ".asc",
open(filename+".asc").read()) open(filename+".asc", "rb").read())
# set up the authentication # set up the authentication
user_pass = (self.username + ":" + self.password).encode('ascii') user_pass = (self.username + ":" + self.password).encode('ascii')
......
...@@ -1009,6 +1009,7 @@ Felix Wiemann ...@@ -1009,6 +1009,7 @@ Felix Wiemann
Gerry Wiener Gerry Wiener
Frank Wierzbicki Frank Wierzbicki
Bryce "Zooko" Wilcox-O'Hearn Bryce "Zooko" Wilcox-O'Hearn
Jakub Wilk
Jason Williams Jason Williams
John Williams John Williams
Sue Williams Sue Williams
......
...@@ -81,6 +81,9 @@ Core and Builtins ...@@ -81,6 +81,9 @@ Core and Builtins
Library 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 - 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 created and renamed over the old file when flush() is called on an
mbox, MMDF or Babyl mailbox. mbox, MMDF or Babyl mailbox.
......
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