Skip to content

Commit

Permalink
Codefix: There's a new version of 'black'
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 committed Jan 29, 2025
1 parent f2b775c commit 7ab1632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nml/grfstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ def parse_file(filename, default):
with open(generic.find_file(filename), "r", encoding="utf-8") as fh:
for idx, line in enumerate(fh):
pos = generic.LinePosition(filename, idx + 1)
line = line.rstrip("\n\r").lstrip("\uFEFF")
line = line.rstrip("\n\r").lstrip("\ufeff")
# The default language is processed twice here. Once as fallback langauge
# and once as normal language.
if default:
Expand Down

0 comments on commit 7ab1632

Please sign in to comment.