misc/migration/3.15.0_common.py
author David Douard <david.douard@logilab.fr>
Fri, 05 Jul 2013 10:35:14 +0200
branchstable
changeset 9140 e7ffe39d4b1a
parent 8410 eb6a607a0067
permissions -rw-r--r--
[test] make unittest_schemaserial.py runnable with python used to run fine only when launched using pytest

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