jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/414854 )
Change subject: [bugfix] Fix whitespace issue for bots/nobots template parameters ......................................................................
[bugfix] Fix whitespace issue for bots/nobots template parameters
Bug: T188320 Change-Id: Idb4e6a7857828a22a917fb09323686ab9cd8c331 --- M pywikibot/page.py 1 file changed, 4 insertions(+), 3 deletions(-)
Approvals: Russell Blau: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 6d72260..b40e57a 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -1187,7 +1187,7 @@ if not params: return False else: - bots = params[0].split(',') + bots = [bot.strip() for bot in params[0].split(',')] if 'all' in bots or pywikibot.calledModuleName() in bots \ or username in bots: return False @@ -1195,8 +1195,9 @@ if not params: return True else: - (ttype, bots) = params[0].split('=', 1) - bots = bots.split(',') + (ttype, bots) = [part.strip() for part + in params[0].split('=', 1)] + bots = [bot.strip() for bot in bots.split(',')] if ttype == 'allow': return 'all' in bots or username in bots if ttype == 'deny':
pywikibot-commits@lists.wikimedia.org