jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/588016 )
Change subject: [bugfix] use str.find instead of str.index within nowcommons.py ......................................................................
[bugfix] use str.find instead of str.index within nowcommons.py
Bug: T223487 Change-Id: Ibb6c1340233c12f4e3ddec1dcd973716b23e7ad0 --- M scripts/nowcommons.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/nowcommons.py b/scripts/nowcommons.py index 31e7825..3482c5f 100755 --- a/scripts/nowcommons.py +++ b/scripts/nowcommons.py @@ -245,11 +245,11 @@ for par in params: val = par.split('=') if len(val) == 1 and not skip: - filenameOnCommons = par[par.index(':') + 1:] + filenameOnCommons = par[par.find(':') + 1:] break if val[0].strip() == '1': filenameOnCommons = \ - val[1].strip()[val[1].strip().index(':') + 1:] + val[1].strip()[val[1].strip().find(':') + 1:] break skip = True if not filenameOnCommons:
pywikibot-commits@lists.wikimedia.org