On Sun, 21 Nov 2010 19:59:54 -0800, Glenn Linderman <v+pyt...@g.nevcal.com> 
wrote:
> On 11/21/2010 9:18 AM, R. David Murray wrote:
> > I want to look at the CGI issue, but I'm not sure when I'll get to it.
> 
> Actually, since this code was working before 3.x, and if email.parser 
> can now accept binary streams, it seems like maybe the only thing that 
> might be wrong is that presently it is getting a text stream instead, so 
> that is something cgi.py or the application program would have to 
> switch, and then maybe some testing would discover correctness, or maybe 
> a specification of UTF-8 as the encoding to use for the text parts would 
> have to be done.

Well, given the bytes/string split in Python3, code definitely has to
be changed to make this work, since you have to explicitly call bytes
processing routines (message_from_bytes, message_from_binary_file,
BytesFeedparser, etc) to parse binary data, and likewise use
BytesGenerator to emit binary data.

--
R. David Murray                                      www.bitdance.com
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to