Skip Montanaro <s...@pobox.com> added the comment:

John,

The API for the open() builtin function has changed.  You should open
the output file with newline="" instead of using the default.  Take a
look at the documentation for open() and csv.reader:

    http://docs.python.org/py3k/library/functions.html?highlight=open#open
    http://docs.python.org/py3k/library/csv.html?highlight=csv.reader#csv.reader

Note the form of the open() call in the csv.reader example.  This one
snuck by me as well.  Python 3 underwent a lot of change in the I/O
subsystem.  This was one of them.  If changing the form of the open()
call doesn't fix the problem, let me know.

Skip

----------

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

Reply via email to