[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns []

Petri Lehtinen report at bugs.python.org
Tue Nov 22 21:10:37 CET 2011


Petri Lehtinen <petri at digip.org> added the comment:

4) Deprecate the function to be removed in 3.4 or 3.5 and "fix" it to always return [].

This way we won't break any 3.0-3.2 code that is using the function, but the users of such code will start to get DeprecationWarnings in 3.3.

There's no meaningful way to fix the function correctly, as the original header data isn't stored anywhere in HTTPMessage or its base class email.message.Message. The function is also obsolete: the get_all() method of email.message.Message can be used.

@stachjankowski: How did you find this issue? Are you porting from 2.x to 3.x or have new 3.x code that uses this function?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13425>
_______________________________________


More information about the Python-bugs-list mailing list