jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/676784 )
Change subject: [bugfix] Do not return a set with Page.isDisambig() ......................................................................
[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(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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',
pywikibot-commits@lists.wikimedia.org