diff options
| author | xmo-odoo <xmo@odoo.com> | 2017-06-12 11:02:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-12 11:02:36 +0200 |
| commit | ed4a899254feed0c19aee107ff24bcf1fc92c215 (patch) | |
| tree | 5e44ee4e107a0cc532ed010f56b23ed01d80f63f /odoo/tools/config.py | |
| parent | 78dc8f68718a3f753a92bae3164ccdd2e3837936 (diff) | |
[IMP] config: better no interpolate
Diffstat (limited to 'odoo/tools/config.py')
| -rw-r--r-- | odoo/tools/config.py | 6 |
1 files 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()): |
