diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 17:31:03 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 18:14:27 +0100 |
commit | f15dd76e1bf5dfbb2b46d302efeaf120d0ba69b0 (patch) | |
tree | 3ee0b1e31255c1a35ebe08e8885f755d2563ac9b /waflib/ConfigSet.py | |
parent | 6ce4b684f8c2e3077ec145191b9ab902e30bafae (diff) | |
parent | ceefc55f3175d6201fb09aa8114916b249a5828d (diff) | |
download | lilv-f15dd76e1bf5dfbb2b46d302efeaf120d0ba69b0.tar.gz lilv-f15dd76e1bf5dfbb2b46d302efeaf120d0ba69b0.tar.bz2 lilv-f15dd76e1bf5dfbb2b46d302efeaf120d0ba69b0.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)) |