diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-06-17 19:23:33 +0100 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-06-17 19:23:33 +0100 |
commit | 744a61f18bbfcbf7dfaa08886185b4595d8b7bcb (patch) | |
tree | 0a46190af97901b276e7881b2e74ee46d5056d94 /setuptools/command/upload_docs.py | |
parent | c003c86fc22b8d20b81226d1e74c95a5c885e314 (diff) | |
download | python-setuptools-git-744a61f18bbfcbf7dfaa08886185b4595d8b7bcb.tar.gz |
Misc. updates following 2to3 checks.
--HG--
branch : single-codebase
Diffstat (limited to 'setuptools/command/upload_docs.py')
-rw-r--r-- | setuptools/command/upload_docs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py index 0a545789..e07b885d 100644 --- a/setuptools/command/upload_docs.py +++ b/setuptools/command/upload_docs.py @@ -23,7 +23,7 @@ try: except ImportError: from setuptools.command.upload import upload -from setuptools.compat import httplib, urlparse +from setuptools.compat import httplib, urlparse, unicode, iteritems if sys.version_info >= (3,): errors = 'surrogateescape' @@ -131,7 +131,7 @@ class upload_docs(upload): sep_boundary = b('\n--') + b(boundary) end_boundary = sep_boundary + b('--') body = [] - for key, values in data.iteritems(): + 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([]): |