This website works better with JavaScript.
Home
Help
Sign In
ben
/
mwparserfromhell
mirror of
https://github.com/earwig/mwparserfromhell
Watch
1
Star
1
Fork
0
Code
Releases
24
Activity
Browse Source
Simplify parameter removal.
tags/v0.3.2
Ben Kurtovic
11 years ago
parent
c14070a99a
commit
40b92358b4
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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(i
ndex - i
)
# Note the shift when we remove a param
for i
in reversed
(to_remove):
self.params.pop(i)
Write
Preview
Loading…
Cancel
Save