Skip to content

Commit

Permalink
better checker
Browse files Browse the repository at this point in the history
  • Loading branch information
theopolisme committed Apr 13, 2013
1 parent 941fef1 commit 4e844d6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions australia_roads.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ def cats_recursive(category):
categories. Almost TOO
straightforward.
"""

str = 'Jubilee 150 Walkway'

for item in category:
if item.find(str) != -1:
pass

if "Category" in str(item):
cats_recursive(item)
else:
Expand All @@ -40,14 +46,6 @@ def editor(text):
work. Requires one parameter, text.
"""

# This checks if an article is to be skipped...uses some rudimentary regex.
regexp1 = re.compile(r'Jubilee 150 Walkway')

if regexp1.search(text) is not None:
print "Article is in skip list."
return text
# End check block

code_compare = mwparserfromhell.parse(text)
code = mwparserfromhell.parse(text)

Expand Down

0 comments on commit 4e844d6

Please sign in to comment.