diff options
author | Chris Ball <cjb@laptop.org> | 2008-05-24 04:43:16 (GMT) |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2008-05-24 04:43:16 (GMT) |
commit | fc9c0227c3880e968b8fb606935990b99fd5a777 (patch) | |
tree | 5754dcc08df40b36b01a5f3a17f6d1a137ccbc42 /server.py | |
parent | 0fdf177c9b8e13081ae6326ce541b5626cd53afd (diff) |
Revert "Handle a crash case when a template is an empty article."
This reverts commit 0fdf177c9b8e13081ae6326ce541b5626cd53afd.
Diffstat (limited to 'server.py')
-rwxr-xr-x | server.py | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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 |