diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 17:31:05 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 18:14:27 +0100 |
commit | f164950f61a0dad02a1bce247087a0323eeab322 (patch) | |
tree | 4aed405b97428001f6396e1d23ccb218ce620000 /waflib/ConfigSet.py | |
parent | db07a21d4848455580d6c58ce32128266dd4f47f (diff) | |
parent | 406f89271452fdb573c7e28113b1ed08ff2b4eda (diff) | |
download | suil-f164950f61a0dad02a1bce247087a0323eeab322.tar.gz suil-f164950f61a0dad02a1bce247087a0323eeab322.tar.bz2 suil-f164950f61a0dad02a1bce247087a0323eeab322.zip |
Update autowaf and adapt to new API
Diffstat (limited to 'waflib/ConfigSet.py')
-rw-r--r-- | waflib/ConfigSet.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/waflib/ConfigSet.py b/waflib/ConfigSet.py index b300bb5..901fba6 100644 --- a/waflib/ConfigSet.py +++ b/waflib/ConfigSet.py @@ -11,7 +11,7 @@ The values put in :py:class:`ConfigSet` must be serializable (dicts, lists, stri import copy, re, os from waflib import Logs, Utils -re_imp = re.compile('^(#)*?([^#=]*?)\ =\ (.*?)$', re.M) +re_imp = re.compile(r'^(#)*?([^#=]*?)\ =\ (.*?)$', re.M) class ConfigSet(object): """ @@ -312,7 +312,7 @@ class ConfigSet(object): :type filename: string """ tbl = self.table - code = Utils.readf(filename, m='rU') + code = Utils.readf(filename, m='r') for m in re_imp.finditer(code): g = m.group tbl[g(2)] = eval(g(3)) |