From b6291c9f6c4f3ea759b1c0ffcbdb8ded552e51da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Schr=C3=B6dinger?= <132720404+Schrodinger71@users.noreply.github.com> Date: Sat, 29 Jun 2024 15:21:44 +0300 Subject: [PATCH] Update check_crlf.py --- Tools/check_crlf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/check_crlf.py b/Tools/check_crlf.py index d691e15c70..a67c8d6884 100755 --- a/Tools/check_crlf.py +++ b/Tools/check_crlf.py @@ -28,7 +28,7 @@ def is_file_crlf(path: str) -> bool: # https://stackoverflow.com/a/29697732/4678631 with open(path, "rb") as f: for line in f: - if line.endswith(b"\r\n"): + if line.endswith(b"\n"): return True return False