[issue10639] reindent.py should not convert newlines

Éric Araujo report at bugs.python.org
Wed Jul 27 17:24:21 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

> The patch is a little more intrusive than the Python 3 patch because
> Python 2.7 doesn't allow specifying the newline to use when writing a
> file (afaict)

Instead of writing a new class, what about using io.open instead of the builtin?  Then you’ll be able to use the same patch than 3.2.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10639>
_______________________________________


More information about the Python-bugs-list mailing list