This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: urllib.urlopen for https doesn't always provide readlines
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: garyfx, gaul, loewis
Priority: normal Keywords:

Created on 2003-08-20 18:50 by garyfx, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
main_detma.py garyfx, 2003-08-20 18:50 A small file that triggers "addinfourl instance has no attribute 'readlines'"
Messages (5)
msg17858 - (view) Author: Gary Feldman (garyfx) Date: 2003-08-20 18:50
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).
msg17859 - (view) Author: Andrew Gaul (gaul) Date: 2003-10-04 20:29
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.
msg17860 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-10-27 14:09
Logged In: YES 
user_id=21627

Fixed with said patch.
msg17861 - (view) Author: Gary Feldman (garyfx) Date: 2003-10-27 14:44
Logged In: YES 
user_id=847172

I'm not sure what the protocol is for responding to bug
fixes, but I do want to thank the folks responsible for
getting this fixed.
msg17862 - (view) Author: Gary Feldman (garyfx) Date: 2003-10-27 14:55
Logged In: YES 
user_id=847172

I'm not sure what the protocol is for responding to bug
fixes, but I do want to thank the folks responsible for
getting this fixed.
History
Date User Action Args
2022-04-10 16:10:44adminsetgithub: 39096
2003-08-20 18:50:08garyfxcreate