diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-09-28 15:01:42 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-09-28 15:01:42 (GMT) |
commit | c081262be6ceed935f56e9d21a9cefe02097223e (patch) | |
tree | 09ba32df4521a7c5e23ee1a9239ec70897b0476e /Lib/distutils | |
parent | be4de52fb1ef023bdfdf2e601dd6eb7b9e5e6657 (diff) | |
parent | 623ae294694dcf11eced4a9d24abf66a571a9d04 (diff) | |
download | cpython-c081262be6ceed935f56e9d21a9cefe02097223e.zip cpython-c081262be6ceed935f56e9d21a9cefe02097223e.tar.gz cpython-c081262be6ceed935f56e9d21a9cefe02097223e.tar.bz2 |
#10510: Fix bug in forward port of 2.7 distutils patch.
Pointed out by Arfrever.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/upload.py | 1 | ||||
-rw-r--r-- | Lib/distutils/tests/test_upload.py | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Lib/distutils/command/upload.py b/Lib/distutils/command/upload.py index e3f6f69..1c4fc48 100644 --- a/Lib/distutils/command/upload.py +++ b/Lib/distutils/command/upload.py @@ -162,7 +162,6 @@ class upload(PyPIRCCommand): if value and value[-1:] == b'\r': body.write(b'\n') # write an extra newline (lurve Macs) body.write(end_boundary) - body.write(b"\r\n") body = body.getvalue() msg = "Submitting %s to %s" % (filename, self.repository) diff --git a/Lib/distutils/tests/test_upload.py b/Lib/distutils/tests/test_upload.py index 2401541..dccaf77 100644 --- a/Lib/distutils/tests/test_upload.py +++ b/Lib/distutils/tests/test_upload.py @@ -127,7 +127,7 @@ class uploadTestCase(PyPIRCCommandTestCase): # what did we send ? headers = dict(self.last_open.req.headers) - self.assertEqual(headers['Content-length'], '2163') + self.assertEqual(headers['Content-length'], '2161') content_type = headers['Content-type'] self.assertTrue(content_type.startswith('multipart/form-data')) self.assertEqual(self.last_open.req.get_method(), 'POST') |