toolsutils.py
changeset 5328 c51e8f62652a
parent 5184 955ee1b24756
parent 5324 449cc4fa9c42
child 5423 e15abfdcce38
equal deleted inserted replaced
5327:34a298eca917 5328:c51e8f62652a
    80     diffs = pipe.stdout.read()
    80     diffs = pipe.stdout.read()
    81     if diffs:
    81     if diffs:
    82         if askconfirm:
    82         if askconfirm:
    83             print
    83             print
    84             print diffs
    84             print diffs
    85             action = ASK.ask('Replace ?', ('N', 'y', 'q'), 'N')
    85             action = ASK.ask('Replace ?', ('Y', 'n', 'q'), 'Y').lower()
    86         else:
    86         else:
    87             action = 'y'
    87             action = 'y'
    88         if action == 'y':
    88         if action == 'y':
    89             try:
    89             try:
    90                 shutil.copyfile(ref_file, appl_file)
    90                 shutil.copyfile(ref_file, appl_file)