[Patches] [ python-Patches-1119016 ] fix for a bug in Header.__unicode__()

SourceForge.net noreply at sourceforge.net
Wed Feb 9 10:33:48 CET 2005


Patches item #1119016, was opened at 2005-02-09 01:55
Message generated for change (Comment added) made by lemburg
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1119016&group_id=5470

Category: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Björn Lindqvist (sonderblade)
>Assigned to: Barry A. Warsaw (bwarsaw)
Summary: fix for a bug in Header.__unicode__()

Initial Comment:
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. 

----------------------------------------------------------------------

>Comment By: M.-A. Lemburg (lemburg)
Date: 2005-02-09 10:33

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1119016&group_id=5470


More information about the Patches mailing list