Sandro Tosi <sandro.t...@gmail.com> added the comment:

I was looking at this bug and tried to reproduce it, but I can't :( I extracted 
this code:


part1 = 'Content-Type: multipart/related; 
start=<op.mhtml.1247227666422.e6e72d4c344a2503@192.168.1.20>; 
boundary=----------1JBOHhxKNnWgkmE17ZJ2Cy\r\nContent-Location: 
http://localhost/page1.html\r\nSubject: =?utf-8?Q?test?=\r\nMIME-Version: 
1.0\r\n\r\n------------1JBOHhxKNnWgkmE17ZJ2Cy\r'
part2 = '\nContent-Disposition: inline; filename=page1.html\r\nContent-Type: 
text/html; charset=UTF-8; name=page1.html\r\nContent-Id: 
<op.mhtml.1247227666422.e6e72d4c344a2503@192.168.1.20>\r\nContent-Location: 
http://localhost/page1.html\r\nContent-Transfer-Encoding: 8bit\r\n\r\n<!DOCTYPE 
HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>\r\n<html><head><title>Page 
1</title></head><body><p>page 
1</p></body></html>\r\n------------1JBOHhxKNnWgkmE17ZJ2Cy--\r\n'
expected = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>\r\n<html><head><title>Page 
1</title></head><body><p>page 1</p></body></html>'
from email.feedparser import FeedParser
feedparser = FeedParser()
feedparser.feed(part1)
feedparser.feed(part2)
m = feedparser.close()
mm = m.get_payload()
mm[0].get_payload() == expected

from the test attached to this bug, and tried on:

* py3k
* release3.1-maint
* release2.7-maint
* debian 2.6.6

(the first 3 recompiled just before the test) and in all of the cases the last 
instruction returns True, so I'm actually quite skeptical this is still a bug, 
or there something I'm missing.

I'm not closing this bug yet, since I'd like to hear first from the people 
involved back then.

----------
nosy: +sandro.tosi

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6465>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to