diff options
| author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 11:51:29 (GMT) |
|---|---|---|
| committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 11:51:29 (GMT) |
| commit | e1aa8d2b2d64eb147cedc24016c38f209d9d397f (patch) | |
| tree | d3f10cbdd1b20e7e881585dead0f7f3fa7512edd /test/Variables | |
| parent | 055c8046afce036fdfad4bc8d60e4059da148f7d (diff) | |
| download | SCons-e1aa8d2b2d64eb147cedc24016c38f209d9d397f.zip SCons-e1aa8d2b2d64eb147cedc24016c38f209d9d397f.tar.gz SCons-e1aa8d2b2d64eb147cedc24016c38f209d9d397f.tar.bz2 | |
Remove 'U' flag to open() which is deprecated.
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 1c60635..d08594d 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'], """\ |
