Last modified: 2014-07-27 00:07:40 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1403/ Reported by: Anonymous user Created on: 2012-02-03 21:35:56 Subject: _getContentsNaive doesn't honour "recurse" parameter Original description: \--- catlib.py \(révision 9851\) +++ catlib.py \(copie de travail\) @@ -170,7 +170,12 @@ sortby=sortby, sortdir=sortdir\): yield tag, page if tag == SUBCATEGORY and recurse: \- for item in page.\_getContentsNaive\(recurse=True, \+ if recurse: \+ if type\(recurse\) is int: \+ newrecurse = recurse - 1 \+ else: \+ newrecurse = recurse \+ for item in page.\_getContentsNaive\(recurse=newrecurse, sortby=sortby, sortdir=sortdir\): yield item my version: guillaume@barbaz:~/src/pywikipedia$ python version.py Pywikipedia \[http\] trunk/pywikipedia \(r9850, 2012/02/01, 12:21:57\) Python 2.7.1+ \(r271:86832, Apr 11 2011, 18:13:53\) \[GCC 4.5.2\] config-settings: use\_api = True use\_api\_login = True unicode test: ok