Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
The docstring og linter_pages says:
:param pageids: Only include lint errors from the specified
pageids
:type pageids: An iterable that returns pageids, or a comma- or
pipe-separated string of pageids (e.g. '945097,1483753,
956608' or '945097|483753|956608')
but the mehtod fails with comma-separated pageids:
import pywikibot
site = pywikibot.Site()
gen = site.linter_pages(pageids='945097,1483753, 956608')
list(gen)
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
list(gen)
File "C:\pwb\GIT\core\pywikibot\site\_extensions.py", line 378, in
linter_pages
query.request['lntpageid'] = '|'.join(pageids)
File "C:\pwb\GIT\core\pywikibot\site\_extensions.py", line 377, in
<genexpr>
pageids = (str(int(p)) for p in pageids if int(p) > 0)
ValueError: invalid literal for int() with base 10: '945097,1483753, 956608'
TASK DETAIL
https://phabricator.wikimedia.org/T427210
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]