misc/migration/3.15.0_common.py
author Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
Tue, 04 Feb 2014 15:29:29 +0100
changeset 9492 c7fc56eecd1a
parent 8410 eb6a607a0067
permissions -rw-r--r--
English typography Get rid of extra space before `!' and `?'

import ConfigParser
try:
    undo_actions = config.cfgfile_parser.get('MAIN', 'undo-support', False)
except ConfigParser.NoOptionError:
    pass # this conf. file was probably already migrated
else:
    config.global_set_option('undo-enabled', bool(undo_actions))