misc/migration/3.15.0_common.py
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 08 Sep 2015 13:43:57 +0200
changeset 10652 e3e4a8c45695
parent 8410 eb6a607a0067
permissions -rw-r--r--
[server/rql2sql] use VariableRef.is_equivalent explicitly instead of relying on __eq__ What we want to compare is the variable referenced by the VariableRef, we should make that explicit. Closes #6694406

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