diff options
author | Marc-André Lemburg <mal@egenix.com> | 2008-08-18 11:13:45 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2008-08-18 11:13:45 (GMT) |
commit | 4763f7184e235e4355bfccbf7f7a0d27c6ccf35e (patch) | |
tree | fb9f8355c7069f2f03e96588b4f4d9dc090e659d /Lib/distutils | |
parent | 541f7da3a9ab257688ffbd0ed5cff5596a231e0a (diff) | |
download | cpython-4763f7184e235e4355bfccbf7f7a0d27c6ccf35e.zip cpython-4763f7184e235e4355bfccbf7f7a0d27c6ccf35e.tar.gz cpython-4763f7184e235e4355bfccbf7f7a0d27c6ccf35e.tar.bz2 |
Restore Python 2.3 compatibility and remove "with" usage.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/core.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index a0e44ea..62a3389 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -218,8 +218,7 @@ def run_setup (script_name, script_args=None, stop_after="run"): sys.argv[0] = script_name if script_args is not None: sys.argv[1:] = script_args - with open(script_name, 'r') as file: - exec file.read() in g, l + exec open(script_name, 'r').read() in g, l finally: sys.argv = save_argv _setup_stop_after = None |