diff options
| author | Greg Noel <GregNoel@tigris.org> | 2009-03-02 03:19:29 (GMT) |
|---|---|---|
| committer | Greg Noel <GregNoel@tigris.org> | 2009-03-02 03:19:29 (GMT) |
| commit | c1396537e5cae88e6357931dc6efe4074cf54ced (patch) | |
| tree | cbd8a625268ec290a2d2e03bbad4a94de8678919 /test/Variables/Variables.py | |
| parent | 22364c2fd6117fefb82e0addb7e9efca027e5c2e (diff) | |
| download | SCons-c1396537e5cae88e6357931dc6efe4074cf54ced.zip SCons-c1396537e5cae88e6357931dc6efe4074cf54ced.tar.gz SCons-c1396537e5cae88e6357931dc6efe4074cf54ced.tar.bz2 | |
replace execfile() by equivalent exec statement
Diffstat (limited to 'test/Variables/Variables.py')
| -rw-r--r-- | test/Variables/Variables.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Variables/Variables.py b/test/Variables/Variables.py index eaac22d..0e6a152 100644 --- a/test/Variables/Variables.py +++ b/test/Variables/Variables.py @@ -235,7 +235,7 @@ opts.Save('variables.saved', env) def checkSave(file, expected): gdict = {} ldict = {} - execfile(file, gdict, ldict) + exec string.replace(open(file).read(), '\r', '\n') in gdict, ldict assert expected == ldict, "%s\n...not equal to...\n%s" % (expected, ldict) # First test with no command line variables |
