diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-27 13:35:35 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-27 13:35:35 -0500 |
commit | 3496ca4734a4666f3cc21517f53c395f1920b851 (patch) | |
tree | 38630122602c8dbad0634ac95420ce0cb43850fd /setuptools/command/upload_docs.py | |
parent | aae21359f7231d508a457c577896895cc8aac7f2 (diff) | |
download | python-setuptools-bitbucket-3496ca4734a4666f3cc21517f53c395f1920b851.tar.gz |
Fix pyflakes warnings
Diffstat (limited to 'setuptools/command/upload_docs.py')
-rw-r--r-- | setuptools/command/upload_docs.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py index ef4cf806..702bbadd 100644 --- a/setuptools/command/upload_docs.py +++ b/setuptools/command/upload_docs.py @@ -130,7 +130,7 @@ class upload_docs(upload): for key, values in iteritems(data): title = '\nContent-Disposition: form-data; name="%s"' % key # handle multiple entries for the same name - if type(values) != type([]): + if isinstance(values, list): values = [values] for value in values: if type(value) is tuple: @@ -165,12 +165,11 @@ class upload_docs(upload): raise AssertionError("unsupported schema "+schema) data = '' - loglevel = log.INFO try: conn.connect() conn.putrequest("POST", url) - conn.putheader('Content-type', - 'multipart/form-data; boundary=%s'%boundary) + content_type = 'multipart/form-data; boundary=%s' % boundary + conn.putheader('Content-type', content_type) conn.putheader('Content-length', str(len(body))) conn.putheader('Authorization', auth) conn.endheaders() |