Skip to content

Commit edbcde9

Browse files
committed
[test] Fix bug in check_line_endings. NFC
1 parent eb8f3d3 commit edbcde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/line_endings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def check_line_endings(filename, expect_only=None, print_errors=True, print_info
4848
data = data.replace(b'\r\n', b'A')
4949
has_dos_line_endings = True
5050

51-
index = data.find(b'\r\n')
51+
index = data.find(b'\n')
5252
if index != -1:
5353
unix_line_ending_example = data[index - 50:index + 50].replace(b'\r', b'\\r').replace(b'\n', b'\\n')
5454
unix_line_ending_count = data.count(b'\n')

0 commit comments

Comments
 (0)