jenkins-bot has submitted this change and it was merged.
Change subject: site.py: update set properly in site.categorymembers()
......................................................................
site.py: update set properly in site.categorymembers()
Update set with proper type (instead of list).
Bug:T103410
Change-Id: I507e0a313a7e4c82b8ccf68d70965693fc6056c3
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index ca340a7..3e1f637 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -3269,7 +3269,7 @@
# TODO: QueryGenerator should detect when the number of
# namespaces requested is higher than available, and split
# the request into several batches.
- excluded_namespaces.add([-1, -2])
+ excluded_namespaces.update([-1, -2])
namespaces = set(self.namespaces) - excluded_namespaces
else:
if 'file' in member_type:
--
To view, visit https://gerrit.wikimedia.org/r/219979
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I507e0a313a7e4c82b8ccf68d70965693fc6056c3
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits