[issue8572] httplib getheader() throws error instead of default
David Stanek
report at bugs.python.org
Sun Aug 1 05:26:03 CEST 2010
David Stanek <dstanek at dstanek.com> added the comment:
I created some tests for the existing behavior and the expected behavior. One of my apps was passing in a tuple and the default. Since this already worked and there are probably others besides me expecting this behavior I changed the patch to handle this.
The new patch treats any non-string value as an iterable and performs a ', '.join() on it. This is basically the old behavior.
This patch is against the py3k branch.
----------
nosy: +dstanek
Added file: http://bugs.python.org/file18299/8572.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8572>
_______________________________________
More information about the Python-bugs-list
mailing list