diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-19 12:46:30 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-19 12:46:30 -0500 |
commit | 3d4d8b9dde61b87271861b8c7ebeb168ac4fa72b (patch) | |
tree | ffbf9cd5a02337ced626892b672b7e21bd305717 /setuptools/command/upload_docs.py | |
parent | a0e8d0568d84e29066a5b45aade5aafe28237ec0 (diff) | |
download | external_python_setuptools-3d4d8b9dde61b87271861b8c7ebeb168ac4fa72b.tar.gz external_python_setuptools-3d4d8b9dde61b87271861b8c7ebeb168ac4fa72b.tar.bz2 external_python_setuptools-3d4d8b9dde61b87271861b8c7ebeb168ac4fa72b.zip |
👹 Feed the hobgoblins (delint).
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): |