Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools/expandtemplates.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/expandtemplates.py')
-rwxr-xr-xtools/expandtemplates.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/expandtemplates.py b/tools/expandtemplates.py
index aec43e2..d02e3c1 100755
--- a/tools/expandtemplates.py
+++ b/tools/expandtemplates.py
@@ -70,11 +70,10 @@ class WPWikiDB:
def getRawArticle(self, title, followRedirects=True):
# Retrieve article text, recursively following #redirects.
- oldtitle = ""
-
if title == '':
return ''
-
+
+ oldtitle = ""
while True:
# Replace underscores with spaces in title.
title = title.replace("_", " ")