We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5e8eb5 commit d410995Copy full SHA for d410995
libmodernize/main.py
@@ -31,7 +31,7 @@ def write_file(self, new_text, filename, old_text, encoding):
31
lineends['\n'] += 1
32
elif line.endswith('\r'):
33
lineends['\r'] += 1
34
- lines.append(line.rstrip(\r\n))
+ lines.append(line.rstrip('\r\n'))
35
super(LFPreservingRefactoringTool, self).write_file(
36
new_text, filename, old_text, encoding)
37
# detect if line ends are consistent in source file
0 commit comments