Message117852
httplib.py ~Line 924
def putheader(self, header, *values):
str = '%s: %s' % (header, '\r\n\t'.join(values))
self._output(str)
should be changed to something like:
def putheader(self, header, *values):
...
s = '%s: %s' % (header, '\r\n\t'.join([str(v) for v in values]))
self._output(s)
The current version shadows str builtin with a local variable. join method assumes strings so they should probably be explicitly cast (at least one 3rd party library appears to pass Content-length as an integer, causing this to fail. Of course, this can't be done unless the str builtin is no longer shadowed. |
|
Date |
User |
Action |
Args |
2010-10-01 23:44:08 | cwells | set | recipients:
+ cwells |
2010-10-01 23:44:08 | cwells | set | messageid: <1285976648.58.0.0752019030242.issue10012@psf.upfronthosting.co.za> |
2010-10-01 23:44:07 | cwells | link | issue10012 messages |
2010-10-01 23:44:07 | cwells | create | |
|