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 (cherry picked from commit 250478a) --- M pywikibot/site.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
Objections: XZise: There's a problem with this change, please improve
diff --git a/pywikibot/site.py b/pywikibot/site.py index 312bb39..ffd37fc 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -3175,7 +3175,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