Senthil Kumaran <orsent...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8572>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to