John Vandenberg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/182139
Change subject: Restore TypeError for allpages and alllinks
......................................................................
Restore TypeError for allpages and alllinks
21a6732 implemented TypeError for multiple namespaces used with
allpages and alllinks, however it is not operative as these methods
were bypassing QueryGenerator's namespace handling.
Change-Id: Id620ca8004cfc5c65f047f4e7cb131ab2378167f
---
M pywikibot/site.py
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/39/182139/1
diff --git a/pywikibot/site.py b/pywikibot/site.py
index 4851c65..3628842 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -3245,7 +3245,7 @@
filterredir = False
apgen = self._generator(api.PageGenerator, type_arg="allpages",
- gapnamespace=int(namespace),
+ namespaces=namespace,
gapfrom=start, step=step, total=total,
g_content=content)
if prefix:
@@ -3304,7 +3304,7 @@
if unique and fromids:
raise Error("alllinks: unique and fromids cannot both be True.")
algen = self._generator(api.ListGenerator, type_arg="alllinks",
- alnamespace=int(namespace), alfrom=start,
+ namespaces=namespace, alfrom=start,
step=step, total=total)
if prefix:
algen.request["alprefix"] = prefix
--
To view, visit https://gerrit.wikimedia.org/r/182139
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id620ca8004cfc5c65f047f4e7cb131ab2378167f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits