This commit is contained in:
Leonel Câmara
2017-07-15 09:52:58 +01:00
parent 7a5f611e76
commit 780510dc32
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -415,10 +415,10 @@ def fix_newlines(path):
|\r|
)''')
for filename in listdir(path, '.*\.(py|html)$', drop=False):
rdata = read_file(filename, 'rb')
rdata = read_file(filename, 'r')
wdata = regex.sub('\n', rdata)
if wdata != rdata:
write_file(filename, wdata, 'wb')
write_file(filename, wdata, 'w')
def copystream(