wmllint-1.4: renamed a variable
'i' wasn't used in places visible from within the cycle, so using 'j' was pointless.
This commit is contained in:
parent
f4f11c03fc
commit
3afe74b5de
1 changed files with 2 additions and 2 deletions
|
@ -1260,12 +1260,12 @@ def hack_syntax(filename, lines):
|
|||
for animation in animations:
|
||||
if animation.variation != None:
|
||||
vcount = 0
|
||||
for j, line in enumerate(lines):
|
||||
for i, line in enumerate(lines):
|
||||
if "[/variation]" in line:
|
||||
vcount += 1
|
||||
if vcount == animation.variation:
|
||||
break
|
||||
lines = lines[:j] + [animation.wml] + lines[j:]
|
||||
lines = lines[:i] + [animation.wml] + lines[i:]
|
||||
except TypeError:
|
||||
pass
|
||||
# Garbage-collect any empty [attack] scopes left behind;
|
||||
|
|
Loading…
Add table
Reference in a new issue