[Python-bugs-list] [ python-Bugs-792101 ] urllib.urlopen for https doesn't always provide readlines

SourceForge.net noreply at sourceforge.net
Sat Oct 4 16:29:45 EDT 2003


Bugs item #792101, was opened at 2003-08-20 13:50
Message generated for change (Comment added) made by gaul
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=792101&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Gary Feldman (garyfx)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib.urlopen for https doesn't always provide readlines

Initial Comment:
The doc for urllib.urlopen says that the object

returned supports readlines.  However, I have a simple

case where it doesn't seem to raise IOError, but

readlines isn't provided.



The initial problem seems to be in addbase.__init__,

which tests fp for readlines, but doesn't do anything

if it's not there.  Presumably it should either provide

a dummy or raise an error (or alternatively, change the

documented behavior to match).



----------------------------------------------------------------------

Comment By: Andrew Gaul (gaul)
Date: 2003-10-04 15:29

Message:
Logged In: YES 
user_id=139865

SSLFile was providing a minimal set of file operations. 

Patch #817854 adds all methods that the urllib documentation

expects.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=792101&group_id=5470



More information about the Python-bugs-list mailing list