[Pywikipedia-l] SVN: [5932] trunk/pywikipedia/pagegenerators.py

filnik at svn.wikimedia.org filnik at svn.wikimedia.org
Sun Oct 5 14:08:11 UTC 2008


Revision: 5932
Author:   filnik
Date:     2008-10-05 14:08:10 +0000 (Sun, 05 Oct 2008)

Log Message:
-----------
This has to be placed on wikipedia.py not here, otherwise it will mess up allpages() 

Modified Paths:
--------------
    trunk/pywikipedia/pagegenerators.py

Modified: trunk/pywikipedia/pagegenerators.py
===================================================================
--- trunk/pywikipedia/pagegenerators.py	2008-10-05 10:55:55 UTC (rev 5931)
+++ trunk/pywikipedia/pagegenerators.py	2008-10-05 14:08:10 UTC (rev 5932)
@@ -232,10 +232,6 @@
     """
     if site is None:
         site = wikipedia.getSite()
-    if namespace is None:
-        page = wikipedia.Page(site, start)
-        namespace = page.namespace()
-        start = page.titleWithoutNamespace()
     for page in site.allpages(start = start, namespace = namespace, includeredirects = includeredirects):
         yield page
 





More information about the Pywikipedia-l mailing list