Browse Source

Simplify parameter removal.

tags/v0.3.2
Ben Kurtovic 11 years ago
parent
commit
40b92358b4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mwparserfromhell/nodes/template.py

+ 2
- 2
mwparserfromhell/nodes/template.py View File

@@ -331,5 +331,5 @@ class Template(Node):
removed = True
if not removed:
raise ValueError(name)
for i, index in enumerate(to_remove):
self.params.pop(index - i) # Note the shift when we remove a param
for i in reversed(to_remove):
self.params.pop(i)

Loading…
Cancel
Save