[issue10639] reindent.py converts newlines to platform default
Éric Araujo
report at bugs.python.org
Sun Jan 9 02:11:19 CET 2011
Éric Araujo <merwok at netwok.org> added the comment:
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?
----------
nosy: +pitrou
status: pending -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10639>
_______________________________________
More information about the Python-bugs-list
mailing list