[Pywikipedia-svn] SVN: [7252] trunk/pywikipedia/wikipedia.py

alexsh at svn.wikimedia.org alexsh at svn.wikimedia.org
Wed Sep 16 07:10:18 UTC 2009


Revision: 7252
Author:   alexsh
Date:     2009-09-16 07:10:18 +0000 (Wed, 16 Sep 2009)

Log Message:
-----------
Site().allpage(): revert fix for autostop.

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

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2009-09-15 20:58:08 UTC (rev 7251)
+++ trunk/pywikipedia/wikipedia.py	2009-09-16 07:10:18 UTC (rev 7252)
@@ -6090,12 +6090,12 @@
                 get_throttle()
             data = query.GetData(params, self)
             
-            count = 0
+            #count = 0
             for p in data['query']['allpages']:
-                count += 1
+                #count += 1
                 yield Page(self, p['title'])
             
-            if data.has_key('query-continue') and count < config.special_page_limit:
+            if data.has_key('query-continue'):
                 params['apfrom'] = data['query-continue']['allpages']['apfrom']
             else:
                 break





More information about the Pywikipedia-svn mailing list