Fixed in r11779.

---

** [bugs:#1629] pagegenerators.py bug in rewrite**

**Status:** closed-fixed
**Created:** Mon Apr 29, 2013 06:38 AM UTC by ChongDae
**Last Updated:** Fri May 03, 2013 03:50 AM UTC
**Owner:** Legoktm

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



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/pywikipediabot/bugs/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/pywikipediabot/admin/bugs/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to