jenkins-bot has submitted this change and it was merged.
Change subject: cosmetic changes: no warning in simulate mode
......................................................................
cosmetic changes: no warning in simulate mode
Change-Id: I39d7b04a2acd1db99c03a1c7f2df2c33aefa5760
---
M scripts/cosmetic_changes.py
1 file changed, 3 insertions(+), 2 deletions(-)
Approvals:
XZise: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/cosmetic_changes.py b/scripts/cosmetic_changes.py
index 7dabff4..c79061d 100644
--- a/scripts/cosmetic_changes.py
+++ b/scripts/cosmetic_changes.py
@@ -37,7 +37,8 @@
#
import pywikibot
-from pywikibot import i18n, pagegenerators, cosmetic_changes
+
+from pywikibot import config, cosmetic_changes, i18n, pagegenerators
from pywikibot.bot import MultipleSitesBot, ExistingPageBot, NoRedirectPageBot
@@ -130,7 +131,7 @@
gen = genFactory.getCombinedGenerator()
if gen:
- if options.get('always') or pywikibot.input_yn(
+ if options.get('always') or config.simulate or pywikibot.input_yn(
warning + '\nDo you really want to continue?',
default=False, automatic_quit=False):
site.login()
--
To view, visit
https://gerrit.wikimedia.org/r/246806
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I39d7b04a2acd1db99c03a1c7f2df2c33aefa5760
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>