Bugs item #3612169, was opened at 2013-04-28 23:38 Message generated for change (Tracker Item Submitted) made by cdpark You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3612169...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: rewrite Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: ChongDae (cdpark) Assigned to: Russell Blau (russblau) Summary: pagegenerators.py bug
Initial Comment: In rewrite branch, generator functions in pagegenerators.py still use deprecated "number" argument.
------- #!/usr/bin/python # -*- coding: utf-8 -*-
import pywikibot from pywikibot import pagegenerators
gen = pagegenerators.ShortPagesPageGenerator(number=30)
i = 0 for page in gen: i += 1 pywikibot.stdout("%4d: %s" % (i, page.title())) ------------ $ python version.py Pywikibot [http] branches/rewrite (r11485, 2013/04/28, 17:58:41, ok) Python 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3] unicode test: ok
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3612169...
pywikipedia-bugs@lists.wikimedia.org