aboutsummaryrefslogtreecommitdiffstats
path: root/waflib/ConfigSet.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 18:43:09 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 19:02:31 +0100
commitca9f746af500be98f7c65b7f1bd0f50ad936a8b6 (patch)
tree789465df66ea327e642c3e80d690ed7e4a38b1a6 /waflib/ConfigSet.py
parenta7860f7e495583f536480a7cce2b6e0c55926f3a (diff)
parentb2ca9626b290e8ab5bfa6269dfc7afe64a012ce1 (diff)
downloadlv2-ca9f746af500be98f7c65b7f1bd0f50ad936a8b6.tar.xz
Update autowaf and adapt to new API
Diffstat (limited to 'waflib/ConfigSet.py')
-rw-r--r--waflib/ConfigSet.py4
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))