diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-13 15:02:49 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-13 15:02:49 (GMT) |
commit | 3fbb32bee52efaafff0109ade4533ea84b194eec (patch) | |
tree | 1d0f23412abf8dcf38513c54410a3bf78ba4f54e /test/Variables | |
parent | 9d977ce28597968f92929d708d56b10a58a35041 (diff) | |
parent | 5c8b6da1dbbe718939c70dc926cb160f758ed9f7 (diff) | |
download | SCons-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/Variables')
-rw-r--r-- | test/Variables/Variables.py | 2 | ||||
-rw-r--r-- | test/Variables/chdir.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/Variables/Variables.py b/test/Variables/Variables.py index 2f4f69e..17b33af 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 2d097d5..0e9abaa 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'], """\ |