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 1/2] 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 d691e15c703..a67c8d6884f 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 From 03fcb6d8244f37f4371e179dbf90680977dd71ae 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:24:19 +0300 Subject: [PATCH 2/2] add comment --- 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 a67c8d6884f..2e5949d1e6c 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"\n"): + if line.endswith(b"\n"): # fix ADT return True return False