On Sun, 21 Nov 2010 19:59:54 -0800, Glenn Linderman <v+python at 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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4