This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: fix for a bug in Header.__unicode__()
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, lemburg, sonderblade
Priority: normal Keywords: patch

Created on 2005-02-09 00:55 by sonderblade, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fix_Header.__unicode__.diff sonderblade, 2005-02-09 10:18 Fix for bug in Header.__unicode__()
Messages (3)
msg47734 - (view) Author: Björn Lindqvist (sonderblade) Date: 2005-02-09 00:55
In three places in the __unicode__ method there is a
line that looks like this:

if lastcs not in (None, 'us-ascii'):

They will generate a TypeError because lastcs is a
Charset object. This patch fixes this bug by using
(None, Charset('us-ascii')) instead. 
msg47735 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2005-02-09 09:33
Logged In: YES 
user_id=38388

Hi Barry,

I think Björn is talking about a problem in the email package.

Note to Björn: the patch does not seem to have made it.
Please try again.
msg47736 - (view) Author: Björn Lindqvist (sonderblade) Date: 2005-02-11 23:01
Logged In: YES 
user_id=51702

The bug was caused by an optimization in compile.c by
rhettiger. The change was then rolled back so this bug is
not a bug anymore.
History
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41550
2005-02-09 00:55:02sonderbladecreate