diff options
author | Greg Noel <GregNoel@tigris.org> | 2009-03-08 00:51:26 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2009-03-08 00:51:26 (GMT) |
commit | 7f380de2d31a8ca288bd8a44a51de8f2867830be (patch) | |
tree | beffc7420a3c8681158aeefa6b82628fa7121aca /test/Deprecated/Options/Options.py | |
parent | 4993b28ca2ef767ede531e21450f390683da6b66 (diff) | |
download | SCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.zip SCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.tar.gz SCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.tar.bz2 |
Issue 2326, change execfile() to exec ... (FIXED)
Diffstat (limited to 'test/Deprecated/Options/Options.py')
-rw-r--r-- | test/Deprecated/Options/Options.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Deprecated/Options/Options.py b/test/Deprecated/Options/Options.py index f411478..d1c7114 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 string.replace(open(file).read(), '\r', '\n') in gdict, ldict + exec open(file, 'rU').read() in gdict, ldict assert expected == ldict, "%s\n...not equal to...\n%s" % (expected, ldict) # First test with no command line options |