[Python-bugs-list] [ python-Bugs-724621 ] email/quopriMIME.py exception on int (lstrip)

SourceForge.net noreply@sourceforge.net
Sun, 20 Apr 2003 08:36:55 -0700


Bugs item #724621, was opened at 2003-04-20 10:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=724621&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Moshe Yudkowsky (myudkowsky)
Assigned to: Nobody/Anonymous (nobody)
Summary: email/quopriMIME.py exception on int (lstrip)

Initial Comment:
Python 2.3a2+, Debian

Summary: when I use the as_string() method on a
multipart, multilevel message, I get an exception from
email/quopriMIME.py, line 84,  complaining about
lstrip() of an integer.

Initial condtions:

I have a script that reads an email message, extracts
some information, encapsulates the message and then
forwards it with some commentary. This script works
under Python 2.2.2.

Failure: This script does not run under 2.3a2+ -- it
fails on the as_string() method. In particular, at the
file/lineno given above.

Using the debugger, I see that in fact there *is* an
integer at that point, the digit "1" to be exact.
Looking up in the stack, I see that this function was
called by the method _encode_chunks in Headers.py, and
that the "newchunks" was [ (1, us-ascii ) ].

Please let me know if you need copies of the scripts,
email messages, etc.

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

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