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:
pywikibot-commits@lists.wikimedia.org