[ python-Bugs-1152723 ] urllib2 dont respect debuglevel in httplib
SourceForge.net
noreply at sourceforge.net
Sun Feb 27 03:57:55 CET 2005
Bugs item #1152723, was opened at 2005-02-27 03:49
Message generated for change (Comment added) made by abbatini
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1152723&group_id=5470
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: abbatini (abbatini)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib2 dont respect debuglevel in httplib
Initial Comment:
It is common habit to see http headers:
>>> import httplib
>>> httplib.HTTPConnection.debuglevel = 1
>>> import urllib
>>> feeddata =
urllib.urlopen('http://diveintomark.org/xml/atom.xml').read()
but this dont work with import urllib2 with python 2.4
In rev 1.57 was intoduced code to AbstractHTTPHandler class
that prevent above mentioned construction.
Init method always set debuglevel=0 then do_open method
always do:
h.set_debuglevel(self._debuglevel)
after instantiating HTTPConnection class.
Regards
----------------------------------------------------------------------
>Comment By: abbatini (abbatini)
Date: 2005-02-27 03:57
Message:
Logged In: YES
user_id=1227778
of course:
# h.set_debuglevel(self._debuglevel)
work very well, but i dont know reason
this code was introduced,
maybe forgotten code since development
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1152723&group_id=5470
More information about the Python-bugs-list
mailing list