[Python-checkins] r59668 - python/branches/release25-maint/Lib/distutils/command/build_scripts.py
guido.van.rossum
python-checkins at python.org
Wed Jan 2 19:59:36 CET 2008
Author: guido.van.rossum
Date: Wed Jan 2 19:59:36 2008
New Revision: 59668
Modified:
python/branches/release25-maint/Lib/distutils/command/build_scripts.py
Log:
Patch #1696. Don't attempt to call None.close() in dry-run mode.
Modified: python/branches/release25-maint/Lib/distutils/command/build_scripts.py
==============================================================================
--- python/branches/release25-maint/Lib/distutils/command/build_scripts.py (original)
+++ python/branches/release25-maint/Lib/distutils/command/build_scripts.py Wed Jan 2 19:59:36 2008
@@ -111,7 +111,8 @@
if f:
f.close()
else:
- f.close()
+ if f:
+ f.close()
self.copy_file(script, outfile)
if os.name == 'posix':
More information about the Python-checkins
mailing list