summaryrefslogtreecommitdiffstats
path: root/test/Deprecated/Options
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 11:51:29 (GMT)
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 11:51:29 (GMT)
commite1aa8d2b2d64eb147cedc24016c38f209d9d397f (patch)
treed3f10cbdd1b20e7e881585dead0f7f3fa7512edd /test/Deprecated/Options
parent055c8046afce036fdfad4bc8d60e4059da148f7d (diff)
downloadSCons-e1aa8d2b2d64eb147cedc24016c38f209d9d397f.zip
SCons-e1aa8d2b2d64eb147cedc24016c38f209d9d397f.tar.gz
SCons-e1aa8d2b2d64eb147cedc24016c38f209d9d397f.tar.bz2
Remove 'U' flag to open() which is deprecated.
Diffstat (limited to 'test/Deprecated/Options')
-rw-r--r--test/Deprecated/Options/Options.py2
-rw-r--r--test/Deprecated/Options/chdir.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/Deprecated/Options/Options.py b/test/Deprecated/Options/Options.py
index e435b9e..6c021f0 100644
--- a/test/Deprecated/Options/Options.py
+++ b/test/Deprecated/Options/Options.py
@@ -237,7 +237,7 @@ opts.Save('options.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 options
diff --git a/test/Deprecated/Options/chdir.py b/test/Deprecated/Options/chdir.py
index 977a351..ed0aab1 100644
--- a/test/Deprecated/Options/chdir.py
+++ b/test/Deprecated/Options/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'], """\