jenkins-bot has submitted this change and it was merged.
Change subject: site.py: fix intersection of sets of namespaces ......................................................................
site.py: fix intersection of sets of namespaces
Bug: T114563 Change-Id: I6c8ce15dffdabe11a49f51d45b04574d8af94f44 --- 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 2d5bfc0..25dedf7 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -3539,7 +3539,7 @@ excluded_namespaces.add(14)
if namespaces: - if excluded_namespaces.intersect(namespaces): + if excluded_namespaces.intersection(namespaces): raise ValueError( 'incompatible namespaces %r and member_type %r' % (namespaces, member_type))
pywikibot-commits@lists.wikimedia.org