[issue8183] warn crashes if warning's __str__ returns Unicode

2010-03-20 Thread Ben Artin
New submission from Ben Artin : Running the following script crashes my 2.6.1 interpreter on two different platforms: from warnings import warn class TestWarning(Warning): def __str__(self): return u'\u00ae' warn(TestWarning()) Platforms I tried this o

[issue4696] email module does not fold headers

2008-12-18 Thread Ben Artin
New submission from Ben Artin : RFC 2822 allows for certain headers to be spread across multiple lines (section 2.2.3). In particular, subject, comments, and keywords headers behave this way (section 3.6.5). I think the email module should unfold such headers. See attached patch