You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print>>sys.stderr, 'File \''+filename+'\' contains OLD OSX line endings "\\r"'
44
+
print>>sys.stderr, "Content around an OLD OSX line ending location: '"+old_osx_line_ending_example+"'"
34
45
return1# Return a non-zero process exit code since we don't want to use the old OSX (9.x) line endings anywhere.
35
46
ifhas_dos_line_endingsandhas_unix_line_endings:
36
-
ifprint_errors: print>>sys.stderr, 'File \''+filename+'\' contains both DOS "\\r\\n" and UNIX "\\n" line endings!'
47
+
ifprint_errors:
48
+
print>>sys.stderr, 'File \''+filename+'\' contains both DOS "\\r\\n" and UNIX "\\n" line endings! ('+str(dos_line_ending_count) +' DOS line endings, '+str(unix_line_ending_count) +' UNIX line endings)'
49
+
print>>sys.stderr, "Content around a DOS line ending location: '"+dos_line_ending_example+"'"
50
+
print>>sys.stderr, "Content around an UNIX line ending location: '"+unix_line_ending_example+"'"
0 commit comments