Some more refactoring

This commit is contained in:
Miroslav Stampar
2012-07-06 17:18:22 +02:00
parent 1a8ebbfd43
commit e948e4d45b
9 changed files with 16 additions and 22 deletions

View File

@@ -324,7 +324,7 @@ class HTTPConnection(httplib.HTTPConnection):
else:
raise CannotSendHeader()
for header in ['Host', 'Accept-Encoding']:
for header in ('Host', 'Accept-Encoding'):
if header in self._headers:
str = '%s: %s' % (header, self._headers[header])
self._output(str)