[issue8572] httplib getheader() throws error instead of default
Senthil Kumaran
report at bugs.python.org
Wed May 5 17:06:24 CEST 2010
Senthil Kumaran <orsenthil at gmail.com> added the comment:
Walter, just to address one of your point:
+ if failobj and not isinstance(failobj, list):
+ if isinstance(failobj, str):
+ failobj = [failobj]
+ else:
+ failobj = list(failobj)
return failobj
If the failobj is None, list(None) does not occur here and no exception will be raised.
Yes, please attach a patch to this issue as you consider would be appropriate. We can see the differences. In py2.6, HTTPResponse.getheader did not invoke get_all method at all, it invokes a geheader method which is a simple dict lookup with default return.
----------
assignee: -> orsenthil
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8572>
_______________________________________
More information about the Python-bugs-list
mailing list