minor cosmetics

This commit is contained in:
Miroslav Stampar 2011-03-17 12:23:56 +00:00
parent 6607a240cf
commit cbdd9e921e

View File

@ -31,6 +31,7 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
responseMsg = "HTTP response "
responseMsg += "[#%d] (%d %s):\n" % (threadData.lastRequestUID, code, getUnicode(msg))
if headers:
logHeaders = "\n".join(["%s: %s" % (key.capitalize() if isinstance(key, basestring) else key, getUnicode(value)) for (key, value) in headers.items()])
else: