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

SourceForge.net noreply at sourceforge.net
Sat Feb 12 00:01:45 CET 2005


Patches item #1119016, was opened at 2005-02-09 01:55
Message generated for change (Comment added) made by sonderblade
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: Closed
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: Björn Lindqvist (sonderblade)
Date: 2005-02-12 00:01

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

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

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