This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients eric.araujo, jaraco, pitrou
Date 2011-01-09.01:11:17
SpamBayes Score 0.019100398
Marked as misclassified No
Message-id <1294535479.68.0.441730256572.issue10639@psf.upfronthosting.co.za>
In-reply-to
Content
I did a bit of testing on demo files.  The first one I tested with had mixed EOLs, in which case the newlines attribute will be a tuple and open(..., newline=r.newlines) will fail.  For reference: http://docs.python.org/dev/library/io#io.TextIOBase.newlines

What would be the best behavior in such cases?  Refuse the temptation to guess and exit?
History
Date User Action Args
2011-01-09 01:11:19eric.araujosetrecipients: + eric.araujo, jaraco, pitrou
2011-01-09 01:11:19eric.araujosetmessageid: <1294535479.68.0.441730256572.issue10639@psf.upfronthosting.co.za>
2011-01-09 01:11:17eric.araujolinkissue10639 messages
2011-01-09 01:11:17eric.araujocreate