[Python-checkins] r65806 - python/trunk/Lib/distutils/core.py
marc-andre.lemburg
python-checkins at python.org
Mon Aug 18 13:13:45 CEST 2008
Author: marc-andre.lemburg
Date: Mon Aug 18 13:13:45 2008
New Revision: 65806
Log:
Restore Python 2.3 compatibility and remove "with" usage.
Modified:
python/trunk/Lib/distutils/core.py
Modified: python/trunk/Lib/distutils/core.py
==============================================================================
--- python/trunk/Lib/distutils/core.py (original)
+++ python/trunk/Lib/distutils/core.py Mon Aug 18 13:13:45 2008
@@ -218,8 +218,7 @@
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
More information about the Python-checkins
mailing list