Xqt has uploaded a new change for review. https://gerrit.wikimedia.org/r/149627
Change subject: BUGFIX: fix for https://gerrit.wikimedia.org/r/#/c/148923/ ...................................................................... BUGFIX: fix for https://gerrit.wikimedia.org/r/#/c/148923/ always variable is not previously declared Change-Id: Ief2600ac6f320eb77511ebd35046df58f045eccc --- M scripts/cosmetic_changes.py 1 file changed, 3 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/27/149627/1 diff --git a/scripts/cosmetic_changes.py b/scripts/cosmetic_changes.py index 8f916a2..34a2d4f 100755 --- a/scripts/cosmetic_changes.py +++ b/scripts/cosmetic_changes.py @@ -912,7 +912,8 @@ if 'comment' not in options or not options['comment']: # Load default summary message. - options['comment'] = i18n.twtranslate(site, 'cosmetic_changes-standalone') + options['comment'] = i18n.twtranslate(site, + 'cosmetic_changes-standalone') if pageTitle: gen = iter([pywikibot.Page(pywikibot.Link(t, site)) for t in pageTitle]) if not gen: @@ -920,7 +921,7 @@ if not gen: pywikibot.showHelp() else: - if not always: + if not options.get('always'): answer = pywikibot.inputChoice( warning + '\nDo you really want to continue?', ['yes', 'no'], ['y', 'n'], 'n') -- To view, visit https://gerrit.wikimedia.org/r/149627 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ief2600ac6f320eb77511ebd35046df58f045eccc Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <i...@gno.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits