summaryrefslogtreecommitdiff
path: root/test/Variables
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 03:51:29 -0800
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 03:51:29 -0800
commit14cd925a49bea1424ffea56fc0334c1f2a6d8aaa (patch)
treed3f10cbdd1b20e7e881585dead0f7f3fa7512edd /test/Variables
parente45ba445a1140cfa4d7836f54f2e6b8d9a5c7325 (diff)
downloadscons-14cd925a49bea1424ffea56fc0334c1f2a6d8aaa.tar.gz
Remove 'U' flag to open() which is deprecated.
Diffstat (limited to 'test/Variables')
-rw-r--r--test/Variables/Variables.py2
-rw-r--r--test/Variables/chdir.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/Variables/Variables.py b/test/Variables/Variables.py
index 1c606353..d08594db 100644
--- a/test/Variables/Variables.py
+++ b/test/Variables/Variables.py
@@ -231,7 +231,7 @@ opts.Save('variables.saved', 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)
# First test with no command line variables
diff --git a/test/Variables/chdir.py b/test/Variables/chdir.py
index 2d097d5f..0e9abaa9 100644
--- a/test/Variables/chdir.py
+++ b/test/Variables/chdir.py
@@ -52,7 +52,7 @@ print("VARIABLE =", repr(env['VARIABLE']))
test.write(['bin', 'opts.cfg'], """\
import os
os.chdir(os.path.split(__name__)[0])
-exec(open('opts2.cfg', 'rU').read())
+exec(open('opts2.cfg', 'r').read())
""")
test.write(['bin', 'opts2.cfg'], """\