misc/migration/3.15.0_common.py
author David Douard <david.douard@logilab.fr>
Tue, 19 Jul 2016 18:08:06 +0200
branch3.22
changeset 11405 5ba55f4c813a
parent 8410 eb6a607a0067
permissions -rw-r--r--
merge 3.20.16 in 3.22

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))