[issue11594] 2to3 does not preserve line endings

Slawomir Nowaczyk report at bugs.python.org
Thu Jul 26 16:41:21 EDT 2018


Slawomir Nowaczyk <slawomir.nowaczyk at gmail.com> added the comment:

I've just tried 2to3 in 3.7.0, and it still breaks line endings for me...

Seems like one also needs to fix line 517 in refactor.py
  fp = io.open(filename, "w", encoding=encoding, newline='')

----------
nosy: +Slawomir Nowaczyk

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue11594>
_______________________________________


More information about the Python-bugs-list mailing list