[migration] makes Yes the default answer to replace configuration file stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 19 Apr 2010 13:35:57 +0200
branchstable
changeset 5324 449cc4fa9c42
parent 5320 848e92bb81cc
child 5325 f1c660e1169e
[migration] makes Yes the default answer to replace configuration file
toolsutils.py
--- a/toolsutils.py	Fri Apr 16 19:45:11 2010 +0200
+++ b/toolsutils.py	Mon Apr 19 13:35:57 2010 +0200
@@ -82,7 +82,7 @@
         if askconfirm:
             print
             print diffs
-            action = ASK.ask('Replace ?', ('N', 'y', 'q'), 'N')
+            action = ASK.ask('Replace ?', ('Y', 'n', 'q'), 'Y').lower()
         else:
             action = 'y'
         if action == 'y':