]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34108: Fix double carriage return in 2to3 on Windows (GH-8271) (#8275)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Jul 2018 19:24:19 +0000 (12:24 -0700)
committerJason R. Coombs <jaraco@jaraco.com>
Fri, 13 Jul 2018 19:24:19 +0000 (15:24 -0400)
commitcf21d0031dd84544d4108765553c2b03dfe726c5
tree1e674815db71f782b1e198725e2af2c4d9912d4c
parent08c1da71030e0d6019b3493e0ffaf060a6aa5d8e
bpo-34108: Fix double carriage return in 2to3 on Windows (GH-8271) (#8275)

* Add test capturing failure.
* Honor newlines as present in the original file.
(cherry picked from commit cafaf0447b950fd4f59edd8cbde040c61ae528f8)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Lib/lib2to3/refactor.py
Lib/lib2to3/tests/test_refactor.py
Misc/NEWS.d/next/Library/2018-07-13-08-44-52.bpo-34108.RjobUC.rst [new file with mode: 0644]