mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #8371 from Robyt3/Scripts-CopyFix-Lint-Fix
Fix `possibly-used-before-assignment` in `copy_fix.py`
This commit is contained in:
commit
8a3635f243
|
@ -8,9 +8,7 @@ def copy_fix(infile, delete_unused, append_missing, delete_empty):
|
|||
with open(infile, encoding="utf-8") as f:
|
||||
content = f.readlines()
|
||||
trans = twlang.translations(infile)
|
||||
if delete_unused or append_missing:
|
||||
local = twlang.localizes()
|
||||
if append_missing:
|
||||
supported = []
|
||||
for tran, (start, expr, end) in trans.items():
|
||||
if delete_unused and tran not in local:
|
||||
|
|
Loading…
Reference in a new issue