[New-bugs-announce] [issue11594] 2to3 tool does not preserve line-endings
report at bugs.python.org
Fri Mar 18 17:27:28 CET 2011
New submission from Alexander Belchenko <bialix at ukr.net>:
I'm using LF-only line-endings for development of my IntelHex library. I'm working on Windows most of the time.
After 2to3 tool has been ran on my library it has not only changed the Python syntax, but it also saved all files with CRLF line-endings. As result I have all changed files completelly modified and diff shows change in every line.
2to3 tool should respect my line-endings and must not use simple open(xxx, "wt") mode for writing modified files.
components: 2to3 (2.x to 3.0 conversion tool)
title: 2to3 tool does not preserve line-endings
versions: Python 2.7, Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce