summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorBo Bayles <bbayles@gmail.com>2018-01-26 00:02:03 (GMT)
committerÉric Araujo <merwok@netwok.org>2018-01-26 00:02:03 (GMT)
commit2fc98ae115e2a2095a0bcf388c27a878aafdb454 (patch)
treebed6c6b572eff1a289631ad1201573b086418781 /Lib/distutils/command
parentc47dacb69054f6fe1c2465df585985430f7fe366 (diff)
downloadcpython-2fc98ae115e2a2095a0bcf388c27a878aafdb454.zip
cpython-2fc98ae115e2a2095a0bcf388c27a878aafdb454.tar.gz
cpython-2fc98ae115e2a2095a0bcf388c27a878aafdb454.tar.bz2
bpo-32304: Fix distutils upload for sdists ending with \x0d (GH-5264)
Patch by Bo Bayles.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/upload.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/distutils/command/upload.py b/Lib/distutils/command/upload.py
index 1fd574a..f7752f9 100644
--- a/Lib/distutils/command/upload.py
+++ b/Lib/distutils/command/upload.py
@@ -159,8 +159,6 @@ class upload(PyPIRCCommand):
body.write(title.encode('utf-8'))
body.write(b"\r\n\r\n")
body.write(value)
- if value and value[-1:] == b'\r':
- body.write(b'\n') # write an extra newline (lurve Macs)
body.write(end_boundary)
body = body.getvalue()