Skip to content

Commit

Permalink
wmllint-1.4: renamed a variable
Browse files Browse the repository at this point in the history
'i' wasn't used in places visible from within the cycle, so using 'j' was pointless.
  • Loading branch information
Elvish-Hunter committed Sep 16, 2015
1 parent f4f11c0 commit 3afe74b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/tools/wmllint-1.4
Expand Up @@ -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;
Expand Down

0 comments on commit 3afe74b

Please sign in to comment.