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:
  Merlijn van Deen: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/site.py b/pywikibot/site.py
index 86d0c04..1915cde 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -3187,7 +3187,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/223873
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I507e0a313a7e4c82b8ccf68d70965693fc6056c3
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: 2.0
Gerrit-Owner: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: 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 <>

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

Reply via email to