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 = "HTTP response "
responseMsg += "[#%d] (%d %s):\n" % (threadData.lastRequestUID, code, getUnicode(msg)) responseMsg += "[#%d] (%d %s):\n" % (threadData.lastRequestUID, code, getUnicode(msg))
if headers: if headers:
logHeaders = "\n".join(["%s: %s" % (key.capitalize() if isinstance(key, basestring) else key, getUnicode(value)) for (key, value) in headers.items()]) logHeaders = "\n".join(["%s: %s" % (key.capitalize() if isinstance(key, basestring) else key, getUnicode(value)) for (key, value) in headers.items()])
else: else: