jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Mpaa: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: Id620ca8004cfc5c65f047f4e7cb131ab2378167f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to