Index: branches/rewrite/pywikibot/site.py |
— | — | @@ -3137,7 +3137,7 @@ |
3138 | 3138 | yield (pywikibot.Page(self, pageitem['title']), |
3139 | 3139 | int(pageitem['value'])) |
3140 | 3140 | |
3141 | | - @deprecate_arg("number", None) |
| 3141 | + @deprecate_arg("number", "total") |
3142 | 3142 | @deprecate_arg("repeat", None) |
3143 | 3143 | def shortpages(self, step=None, total=None): |
3144 | 3144 | """Yield Pages and lengths from Special:Shortpages. |
Index: branches/rewrite/pywikibot/pagegenerators.py |
— | — | @@ -888,10 +888,11 @@ |
889 | 889 | for page, length in site.longpages(number=number, repeat=repeat): |
890 | 890 | yield page |
891 | 891 | |
892 | | -def ShortPagesPageGenerator(number = 100, repeat = False, site = None): |
| 892 | + |
| 893 | +def ShortPagesPageGenerator(number=100, repeat=False, site=None): |
893 | 894 | if site is None: |
894 | 895 | site = pywikibot.Site() |
895 | | - for page, length in site.shortpages(number=number, repeat=repeat): |
| 896 | + for page, length in site.shortpages(total=number, repeat=repeat): |
896 | 897 | yield page |
897 | 898 | |
898 | 899 | def LinksearchPageGenerator(link, namespaces=None, step=None, total=None, |