diff options
Diffstat (limited to 'tools/expandtemplates.py')
-rwxr-xr-x | tools/expandtemplates.py | 5 |
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("_", " ") |