From be42b5c226b2be17416b251a72b97cb56bb884c9 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Wed, 10 Jan 2024 14:47:32 -0800 Subject: [PATCH] Don't conflict file variable name with outer context scope. --- scripts/create_strings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/create_strings.py b/scripts/create_strings.py index c4d48d69..78242d0f 100644 --- a/scripts/create_strings.py +++ b/scripts/create_strings.py @@ -88,8 +88,8 @@ def _find_string(lang, string): / "LC_MESSAGES" / message_file, "r", - ) as f: - messages = json.load(f) + ) as lang_message_file: + messages = json.load(lang_message_file) new_string = messages[key] if new_string != string and new_string: return new_string