summaryrefslogtreecommitdiff
path: root/setuptools/command/upload_docs.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-05-31 21:55:48 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-05-31 21:55:48 -0400
commit4b0aaa921e46afbfa2f98069ea016f80c3ab1c84 (patch)
treeb11fc6319f239f2198871022dddc59ec25f86e4d /setuptools/command/upload_docs.py
parent0e17685d76ce5b7f28b3396e362e3f960c912a37 (diff)
downloadpython-setuptools-git-4b0aaa921e46afbfa2f98069ea016f80c3ab1c84.tar.gz
Normalize indent
Diffstat (limited to 'setuptools/command/upload_docs.py')
-rw-r--r--setuptools/command/upload_docs.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py
index 86a71468..4ad66c29 100644
--- a/setuptools/command/upload_docs.py
+++ b/setuptools/command/upload_docs.py
@@ -104,22 +104,22 @@ class upload_docs(upload):
@staticmethod
def _build_part(key, values, sep_boundary):
- title = '\nContent-Disposition: form-data; name="%s"' % key
- # handle multiple entries for the same name
- if not isinstance(values, list):
- values = [values]
- for value in values:
- if type(value) is tuple:
- title += '; filename="%s"' % value[0]
- value = value[1]
- else:
- value = _encode(value)
- yield sep_boundary
- yield _encode(title)
- yield b"\n\n"
- yield value
- if value and value[-1:] == b'\r':
- yield b'\n' # write an extra newline (lurve Macs)
+ title = '\nContent-Disposition: form-data; name="%s"' % key
+ # handle multiple entries for the same name
+ if not isinstance(values, list):
+ values = [values]
+ for value in values:
+ if type(value) is tuple:
+ title += '; filename="%s"' % value[0]
+ value = value[1]
+ else:
+ value = _encode(value)
+ yield sep_boundary
+ yield _encode(title)
+ yield b"\n\n"
+ yield value
+ if value and value[-1:] == b'\r':
+ yield b'\n' # write an extra newline (lurve Macs)
@classmethod
def _build_multipart(cls, data):