Eran Rundstein added the comment:

The patch is probably trivial - however I would still like some verification.
Would it be correct to call self.close() when fp.read returns ''? In case 
self.length is not present, I don't see a way around this anyway. When it is 
present, and fp.read returns '', how should we go about that? We can either 
return less data, or raise an exception to indicate that the connection 
terminated prematurely.

Thanks

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16298>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to