Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2008-05-24 04:43:16 (GMT)
committer Chris Ball <cjb@laptop.org>2008-05-24 04:43:16 (GMT)
commitfc9c0227c3880e968b8fb606935990b99fd5a777 (patch)
tree5754dcc08df40b36b01a5f3a17f6d1a137ccbc42 /server.py
parent0fdf177c9b8e13081ae6326ce541b5626cd53afd (diff)
Revert "Handle a crash case when a template is an empty article."
This reverts commit 0fdf177c9b8e13081ae6326ce541b5626cd53afd.
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/server.py b/server.py
index 1cf92a5..33d023e 100755
--- a/server.py
+++ b/server.py
@@ -70,14 +70,11 @@ class WPWikiDB:
# Retrieve article text, recursively following #redirects.
while True:
# Capitalize the first letter of the article -- Trac #6991.
- if not title:
- article_text = ""
- else:
- title = title[0].capitalize() + title[1:]
+ title = title[0].capitalize() + title[1:]
- # Replace underscores with spaces in title.
- title = title.replace("_", " ")
- article_text = unicode(wp.wp_load_article(title.encode('utf8')), 'utf8')
+ # Replace underscores with spaces in title.
+ title = title.replace("_", " ")
+ article_text = unicode(wp.wp_load_article(title.encode('utf8')), 'utf8')
# To see unmodified article_text, uncomment here.
# print article_text