jenkins-bot has submitted this change and it was merged.
Change subject: Fix warning for intersect mode with only one gen ......................................................................
Fix warning for intersect mode with only one gen
The warning message was using pywikibot.input instead of pywikibot.warning.
Change-Id: Iefc5c8b7885d73130066a6142b67e5ee7ecfa5a3 --- M pywikibot/pagegenerators.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: XZise: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py index 0f6e8e5..e07bf44 100644 --- a/pywikibot/pagegenerators.py +++ b/pywikibot/pagegenerators.py @@ -375,8 +375,8 @@ gensList = self.gens[0] dupfiltergen = gensList if self.intersect: - pywikibot.input(u'Only one generator. ' - u'Param "-intersect" has no meaning or effect.') + pywikibot.warning( + '"-intersect" ignored as only one generator is specified.') else: if self.intersect: gensList = intersect_generators(self.gens)
pywikibot-commits@lists.wikimedia.org