[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

R. David Murray report at bugs.python.org
Mon Jun 13 21:36:36 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

fileno and stat won't work on a StringIO object.  So StringIO would need to be special cased to call getvalue.

----------
nosy: +orsenthil, r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12327>
_______________________________________


More information about the Python-bugs-list mailing list