From c245088bdf9bbfc46946371424056cff0202b2bf Mon Sep 17 00:00:00 2001 From: Ronit Jain Date: Mon, 13 Nov 2023 23:09:13 +0530 Subject: [PATCH] normalize line ending to that of terminal --- lean/components/util/encryption_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lean/components/util/encryption_helper.py b/lean/components/util/encryption_helper.py index 8a50e3b8..e3e3de50 100644 --- a/lean/components/util/encryption_helper.py +++ b/lean/components/util/encryption_helper.py @@ -60,7 +60,7 @@ def get_project_key_hash(project_key_path: Path): :param project_key_path: The path to the project key file :return: The project iv """ - with open(project_key_path, 'r', encoding='utf-8') as f: + with open(project_key_path, 'r', encoding='utf-8', newline='\r\n') as f: content = f.read() return calculate_md5(content)