jenkins-bot submitted this change.
[bugfix] Do not return a set with Page.isDisambig()
if disambig_in_page is an empty set it may be returned
Change-Id: Ib4b4a51c98da13ebbc9840ac05e782998d7866de
---
M pywikibot/page/__init__.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py
index 6a071b5..339d9a4 100644
--- a/pywikibot/page/__init__.py
+++ b/pywikibot/page/__init__.py
@@ -851,7 +851,7 @@
disambigs.update(self.site._disambigtemplates)
# see if any template on this page is in the set of disambigs
disambig_in_page = disambigs.intersection(templates)
- return self.namespace() != 10 and disambig_in_page
+ return self.namespace() != 10 and bool(disambig_in_page)
@deprecated_args(withTemplateInclusion='with_template_inclusion',
onlyTemplateInclusion='only_template_inclusion',
To view, visit change 676784. To unsubscribe, or for help writing mail filters, visit settings.