Skip to content
Unverified Commit c0b59934 authored by John Chadwick's avatar John Chadwick Committed by GitHub
Browse files

Do not apply line endings twice. (#671)

At least on some occasions, setting `newline` to whatever the line endings currently are can cause Python to replace the `\n`s with whatever you pass in, causing lines to be encoded twice. This leads to CRLF files containing `\r\r\n` sequences in place of `\r\n`.
parent 582102dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment