misc/migration/3.15.0_common.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Wed, 12 Mar 2014 08:56:31 +0100
branchstable
changeset 9594 e549ef4be945
parent 8410 eb6a607a0067
permissions -rw-r--r--
[testlib] Drop override of assertItemsEqual method The override is not compatible with underlying (standard) method because it builds sets and rely on eid. Closes #3641111.

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