Message285104
The scripts are being read in with mode 'rb', decoded, modified, then written back out with mode 'w'. This means the EOL conversion doesn't happen on the way in, but does happen on the way out, and so '\r\n' becomes '\r\r\n'. One fix would be to always use binary mode and encode the contents back to bytes instead. However since there are no longer any binary files in venv/Scripts/*, perhaps a better fix is to remove the binary handling entirely and always use text mode? |
|
Date |
User |
Action |
Args |
2017-01-10 10:51:18 | evan_ | set | recipients:
+ evan_, paul.moore, vinay.sajip, tim.golden, zach.ware, steve.dower, Josh Wilson |
2017-01-10 10:51:18 | evan_ | set | messageid: <1484045478.57.0.981386044681.issue29213@psf.upfronthosting.co.za> |
2017-01-10 10:51:18 | evan_ | link | issue29213 messages |
2017-01-10 10:51:18 | evan_ | create | |
|