[issue14709] http.client fails sending read()able Object
Tobias Steinrücken
report at bugs.python.org
Thu May 3 12:31:38 CEST 2012
New submission from Tobias Steinrücken <ts at mausbrand.de>:
It seems that http.client's send() function lacks an else/return statement in Line 772.
If this method is called with an read()able Object, it jumps into
L 750: if hasattr( data,"read"):
processes this data correctly, but then falls through (due to missing else ) to
L 773: try:
L 774: self.socket.sendall(data)
where finally an TypeError raises.
----------
components: None
messages: 159845
nosy: Tobias.Steinrücken
priority: normal
severity: normal
status: open
title: http.client fails sending read()able Object
type: behavior
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14709>
_______________________________________
More information about the Python-bugs-list
mailing list