]> granicus.if.org Git - python/commit
#11584: Since __getitem__ returns headers, make decode_header handle them.
authorR David Murray <rdmurray@bitdance.com>
Fri, 25 Mar 2011 19:10:55 +0000 (15:10 -0400)
committerR David Murray <rdmurray@bitdance.com>
Fri, 25 Mar 2011 19:10:55 +0000 (15:10 -0400)
commit041015cc70465c8a008d4ef45ffe3fe05041fad2
treed87526fb02459f89ec4681c274a2ba903a8cbb76
parent213eb96902387dd1f5af0f5f1b80f3d227fd0186
#11584: Since __getitem__ returns headers, make decode_header handle them.

Why I consider this a bug rather than an API change: the API change was
to Message, which didn't used to return Headers unless you added them
yourself.  Now it does (for 8bit binary header input), so decode_header
needs to be able to handle them.
Lib/email/header.py
Lib/email/test/test_email.py