diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-03-07 15:41:51 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-03-07 15:41:51 -0500 |
commit | da94b05088d9bddb6ba0cd5a1b236e99985816c0 (patch) | |
tree | 8a78ccd2d459e7702d914cb35e29f5f661e5bf5a /setuptools/command/upload_docs.py | |
parent | 6980b9c8fed113f1046099924e16287662beff5f (diff) | |
parent | 25edd1951d8d44c34578c926f5c20ed3d452587b (diff) | |
download | external_python_setuptools-da94b05088d9bddb6ba0cd5a1b236e99985816c0.tar.gz external_python_setuptools-da94b05088d9bddb6ba0cd5a1b236e99985816c0.tar.bz2 external_python_setuptools-da94b05088d9bddb6ba0cd5a1b236e99985816c0.zip |
Merge remote-tracking branch 'origin/master' into debt/remove-features
Diffstat (limited to 'setuptools/command/upload_docs.py')
-rw-r--r-- | setuptools/command/upload_docs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py index 130a0cb6..0351da77 100644 --- a/setuptools/command/upload_docs.py +++ b/setuptools/command/upload_docs.py @@ -127,8 +127,8 @@ class upload_docs(upload): """ Build up the MIME payload for the POST data """ - boundary = b'--------------GHSKFJDLGDS7543FJKLFHRE75642756743254' - sep_boundary = b'\n--' + boundary + boundary = '--------------GHSKFJDLGDS7543FJKLFHRE75642756743254' + sep_boundary = b'\n--' + boundary.encode('ascii') end_boundary = sep_boundary + b'--' end_items = end_boundary, b"\n", builder = functools.partial( @@ -138,7 +138,7 @@ class upload_docs(upload): part_groups = map(builder, data.items()) parts = itertools.chain.from_iterable(part_groups) body_items = itertools.chain(parts, end_items) - content_type = 'multipart/form-data; boundary=%s' % boundary.decode('ascii') + content_type = 'multipart/form-data; boundary=%s' % boundary return b''.join(body_items), content_type def upload_file(self, filename): |