aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/upload_docs.py
diff options
context:
space:
mode:
author"Brett Cannon ext:(%22) <brett@python.org>2010-01-17 12:57:41 -0800
committer"Brett Cannon ext:(%22) <brett@python.org>2010-01-17 12:57:41 -0800
commit07f219c589799bcb539ac79382f63cb5f1aafe2f (patch)
tree058f37e7108f3666c4aae92bef76d7bbe2d8ee42 /setuptools/command/upload_docs.py
parent8b1e0905135c56a9f66d5d6043ba33ac4ffab435 (diff)
downloadexternal_python_setuptools-07f219c589799bcb539ac79382f63cb5f1aafe2f.tar.gz
external_python_setuptools-07f219c589799bcb539ac79382f63cb5f1aafe2f.tar.bz2
external_python_setuptools-07f219c589799bcb539ac79382f63cb5f1aafe2f.zip
Rename variable 'http' to 'conn' as httplib is renamed http in Python
3. --HG-- branch : distribute extra : rebase_source : 50d0da5b2e099c4bfe55ad81dce0f73edb4f994c
Diffstat (limited to 'setuptools/command/upload_docs.py')
-rw-r--r--setuptools/command/upload_docs.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py
index 46e06bc6..4548635c 100644
--- a/setuptools/command/upload_docs.py
+++ b/setuptools/command/upload_docs.py
@@ -121,28 +121,28 @@ class upload_docs(upload):
urlparse.urlparse(self.repository)
assert not params and not query and not fragments
if schema == 'http':
- http = httplib.HTTPConnection(netloc)
+ conn = httplib.HTTPConnection(netloc)
elif schema == 'https':
- http = httplib.HTTPSConnection(netloc)
+ conn = httplib.HTTPSConnection(netloc)
else:
raise AssertionError("unsupported schema "+schema)
data = ''
loglevel = log.INFO
try:
- http.connect()
- http.putrequest("POST", url)
- http.putheader('Content-type',
+ conn.connect()
+ conn.putrequest("POST", url)
+ conn.putheader('Content-type',
'multipart/form-data; boundary=%s'%boundary)
- http.putheader('Content-length', str(len(body)))
- http.putheader('Authorization', auth)
- http.endheaders()
- http.send(body)
+ conn.putheader('Content-length', str(len(body)))
+ conn.putheader('Authorization', auth)
+ conn.endheaders()
+ conn.send(body)
except socket.error, e:
self.announce(str(e), log.ERROR)
return
- r = http.getresponse()
+ r = conn.getresponse()
if r.status == 200:
self.announce('Server response (%s): %s' % (r.status, r.reason),
log.INFO)