Browse Source

context is node, not obj

tags/v0.1
Ben Kurtovic 11 years ago
parent
commit
3b72f94531
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mwparserfromhell/wikicode.py

+ 1
- 1
mwparserfromhell/wikicode.py View File

@@ -92,7 +92,7 @@ class Wikicode(StringMixIn):
return callback(self, value, i)
if self._contains(self._get_children(node), obj):
return self._do_search(obj, value, recursive, callback,
context=obj)
context=node)
raise ValueError(obj)

callback(self, value, self.index(obj, recursive=False))


Loading…
Cancel
Save