Is multifile fixed or broken in 2.2?
Stuart D. Gathman
stuart at bmsi.com
Sat Oct 5 21:51:25 EDT 2002
In the small test program below, python-2.1 reads one more newline than
python-2.2 on the multipart section. Which one is right?
import multifile
import StringIO
testmsg="""
--------------7EC2082FC4F651D73FCD6FE1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Dear Agent 1
I hope you can read this. Whenever you write label it P.B.S kids.
Eliza doesn't know a thing about P.B.S kids. got to go by
agent one.
--------------7EC2082FC4F651D73FCD6FE1--
"""
fp = StringIO.StringIO(testmsg)
msg = multifile.MultiFile(fp)
msg.push("------------7EC2082FC4F651D73FCD6FE1")
while msg.next():
print msg.read()
--
Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
More information about the Python-list
mailing list