[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread R. David Murray
R. David Murray added the comment: No problem. It's too bad that regression slipped in to 3.2.0. I probably fixed it by accident, since I rewrote a bunch of that code in 3.2.1 while fixing a different bug. -- resolution: -> out of date stage: -> committed/rejected status: open ->

[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread Tim Koopman
Tim Koopman added the comment: Looking at the source of 3.2.1, it appears this was already solved. Sorry. -- ___ Python tracker ___ _

[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread Tim Koopman
Tim Koopman added the comment: The default Arch Linux version: 3.2.0 Python 3.2 (r32:88445, Apr 15 2011, 11:09:05) -- ___ Python tracker ___ ___

[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread R. David Murray
R. David Murray added the comment: I can't reproduce this. What exact version of Python are you using? -- assignee: -> r.david.murray nosy: +r.david.murray ___ Python tracker

[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread Tim Koopman
New submission from Tim Koopman : Creating an empty header produces an exception when calling the encode function: >>> from email.header import Header >>> Header('', 'iso-8859-1').encode() Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.2/email/header.py", line