From 2710816739397c11866cdbc771026d696908cf71 Mon Sep 17 00:00:00 2001 From: Krunal Parekh Date: Thu, 25 May 2023 16:58:24 +0800 Subject: [PATCH] Remove the outdated "U" mode for open file --- snappergui/changesWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snappergui/changesWindow.py b/snappergui/changesWindow.py index 44a2203..a01088b 100644 --- a/snappergui/changesWindow.py +++ b/snappergui/changesWindow.py @@ -162,7 +162,7 @@ def on_idle_init_paths_tree(self): def get_lines_from_file(self, path): try: - return open(path, 'U').readlines() + return open(path).readlines() except IsADirectoryError: pass except FileNotFoundError: