Changes by Scott Kitterman <skl...@kitterman.com>:
--
nosy: +kitterma
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22995>
___
_
Scott Kitterman skl...@kitterman.com added the comment:
Not so fast ... I may have done this wrong, but I get:
print(Header(hdrin,maxlinelen=78))
Received: from mailout00.controlledmail.com (mailout00.controlledmail.com
[72.81.252.19]) by mailwash7.pair.com (Postfix) with ESMTP id 16BB5BAD5
New submission from Scott Kitterman skl...@kitterman.com:
Header folding is very different (non-existent as far as I've found so far) in
Python3. Here's a short example:
#!/usr/bin/python
# -*- coding: ISO-8859-1
from email.header import Header
hdrin = 'Received: from mailout00
New submission from Scott Kitterman skl...@kitterman.com:
email.Message was dropped in python3.
from email.Message import Message
now fails. Changing email.Message to email.message seems to be all that's
needed.
--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 130179
nosy
Scott Kitterman skl...@kitterman.com added the comment:
Agreed, but email.Message was never marked deprecated so there's likely old
code out there that's never been updated (which is how I ran into this). This
would be, I think, a very low risk transformation to apply
New submission from Scott Kitterman skl...@kitterman.com:
Using the csv module I encountered an ASCII NUL in a file and got this error:
_csv.Error: line contains NULL byte
According to the documentation (
http://docs.python.org/library/csv.html#module-contents ) it should be
csv.Error