New submission from Tobias Steinrücken <t...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14709>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to