Skip to content

Commit

Permalink
Some cosmetic stuff, and using MWParserFromHell's iterative equivalen…
Browse files Browse the repository at this point in the history
…t when possible.
  • Loading branch information
earwig committed Jul 7, 2012
1 parent 53d9ed5 commit bbf6b61
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions earwigbot/wiki/page.py
Expand Up @@ -76,7 +76,6 @@ class Page(CopyrightMixIn):
- :py:meth:`~earwigbot.wiki.copyvios.CopyrightMixIn.copyvio_compare`:
checks the page like :py:meth:`copyvio_check`, but against a specific URL
"""

PAGE_UNKNOWN = 0
PAGE_INVALID = 1
PAGE_MISSING = 2
Expand Down Expand Up @@ -757,8 +756,8 @@ def parse_param(template, param):
username = username.lower()
optouts = [optout.lower() for optout in optouts] if optouts else []

re_bots = "\{\{\s*(no)?bots\s*(\||\}\})"
filter = self.parse().filter_templates(matches=re_bots, recursive=True)
r_bots = "\{\{\s*(no)?bots\s*(\||\}\})"
filter = self.parse().ifilter_templates(matches=r_bots, recursive=True)
for template in filter:
if template.has_param("deny"):
denies = parse_param(template, "deny")
Expand Down

0 comments on commit bbf6b61

Please sign in to comment.