From ed4a899254feed0c19aee107ff24bcf1fc92c215 Mon Sep 17 00:00:00 2001 From: xmo-odoo Date: Mon, 12 Jun 2017 11:02:36 +0200 Subject: [PATCH] [IMP] config: better no interpolate --- odoo/tools/config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/odoo/tools/config.py b/odoo/tools/config.py index 02f467dcc54..899c0f12797 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -3,10 +3,8 @@ try: import configparser as ConfigParser - CP_kw = dict(interpolation=None) except ImportError: import ConfigParser - CP_kw = dict() import optparse import os @@ -503,7 +501,7 @@ class configmanager(object): setattr(parser.values, option.dest, ",".join(ad_paths)) def load(self): - p = ConfigParser.ConfigParser(**CP_kw) + p = ConfigParser.RawConfigParser() try: p.read([self.rcfile]) for (name,value) in p.items('options'): @@ -529,7 +527,7 @@ class configmanager(object): pass def save(self): - p = ConfigParser.ConfigParser(**CP_kw) + p = ConfigParser.RawConfigParser() loglevelnames = dict(zip(self._LOGLEVELS.values(), self._LOGLEVELS.keys())) p.add_section('options') for opt in sorted(self.options.keys()):