aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMathieu Blondel <mathieu@mblondel.org>2007-05-26 10:34:39 +0000
committerMathieu BlondelMathieu Blondel <mathieu@mblondel.orgmathieu@mblondel.org>2007-05-26 10:34:39 +0000
commit12913d9fee87c909de1e72e87be90f26ec51e29c (patch)
tree840abe5aa0ba36b06d2c059fadcf28cad38a052a /src
parentabd2f774d8b04a0281e9ca5d490f09f3d76632b1 (diff)
downloadwikipediafs-12913d9fee87c909de1e72e87be90f26ec51e29c.tar.gz
Fixed a little problem in article.py. Spaces in article name must be replaced
with underscores. git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@50 59acd704-e115-0410-a914-e735a229ed7c
Diffstat (limited to 'src')
-rw-r--r--src/wikipediafs/article.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wikipediafs/article.py b/src/wikipediafs/article.py
index fc3c822..9170f4e 100644
--- a/src/wikipediafs/article.py
+++ b/src/wikipediafs/article.py
@@ -45,8 +45,10 @@ class Article(SGMLParser):
password=None,
):
SGMLParser.__init__(self)
-
- self.name = name
+
+ # Mediawiki replaces spaces with underscores
+ # because an URL cannot contain spaces
+ self.name = name.replace(" ", "_")
self.host = host
self.basename = basename
self.cookie_str = cookie_str