summaryrefslogtreecommitdiffstats
path: root/test/Deprecated
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 /test/Deprecated
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 'test/Deprecated')
-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 2a2d26c..e415739 100644
--- a/test/Deprecated/Options/Options.py
+++ b/test/Deprecated/Options/Options.py
@@ -241,7 +241,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'], """\