diff options
author | Mathieu Blondel <mathieu@mblondel.org> | 2007-05-26 10:34:39 +0000 |
---|---|---|
committer | Mathieu BlondelMathieu Blondel <mathieu@mblondel.orgmathieu@mblondel.org> | 2007-05-26 10:34:39 +0000 |
commit | 12913d9fee87c909de1e72e87be90f26ec51e29c (patch) | |
tree | 840abe5aa0ba36b06d2c059fadcf28cad38a052a /src | |
parent | abd2f774d8b04a0281e9ca5d490f09f3d76632b1 (diff) | |
download | wikipediafs-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.py | 6 |
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 |