summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Variables
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-13 15:02:49 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-13 15:02:49 (GMT)
commit3fbb32bee52efaafff0109ade4533ea84b194eec (patch)
tree1d0f23412abf8dcf38513c54410a3bf78ba4f54e /src/engine/SCons/Variables
parent9d977ce28597968f92929d708d56b10a58a35041 (diff)
parent5c8b6da1dbbe718939c70dc926cb160f758ed9f7 (diff)
downloadSCons-3fbb32bee52efaafff0109ade4533ea84b194eec.zip
SCons-3fbb32bee52efaafff0109ade4533ea84b194eec.tar.gz
SCons-3fbb32bee52efaafff0109ade4533ea84b194eec.tar.bz2
Merged in rodrigc/scons (pull request #409)
Remove 'U' flag to open()
Diffstat (limited to 'src/engine/SCons/Variables')
-rw-r--r--src/engine/SCons/Variables/VariablesTests.py2
-rw-r--r--src/engine/SCons/Variables/__init__.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Variables/VariablesTests.py b/src/engine/SCons/Variables/VariablesTests.py
index 69f1e01..7ee66ca 100644
--- a/src/engine/SCons/Variables/VariablesTests.py
+++ b/src/engine/SCons/Variables/VariablesTests.py
@@ -65,7 +65,7 @@ def check(key, value, env):
def checkSave(file, expected):
gdict = {}
ldict = {}
- exec(open(file, 'rU').read(), gdict, ldict)
+ exec(open(file, 'r').read(), gdict, ldict)
assert expected == ldict, "%s\n...not equal to...\n%s" % (expected, ldict)
class VariablesTestCase(unittest.TestCase):
diff --git a/src/engine/SCons/Variables/__init__.py b/src/engine/SCons/Variables/__init__.py
index b03e5b5..cd66604 100644
--- a/src/engine/SCons/Variables/__init__.py
+++ b/src/engine/SCons/Variables/__init__.py
@@ -175,7 +175,7 @@ class Variables(object):
sys.path.insert(0, dir)
try:
values['__name__'] = filename
- exec(open(filename, 'rU').read(), {}, values)
+ exec(open(filename, 'r').read(), {}, values)
finally:
if dir:
del sys.path[0]