Skip to content

Commit

Permalink
Don't conflict file variable name with outer context scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Jan 10, 2024
1 parent ff1cbb3 commit be42b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/create_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be42b5c

Please sign in to comment.