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:
Elvish_Hunter 2015-09-15 00:31:16 +02:00
parent f4f11c03fc
commit 3afe74b5de

View file

@ -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;