Patch #1696. Don't attempt to close None in dry-run mode.

This commit is contained in:
Guido van Rossum 2008-01-02 19:00:46 +00:00
parent fed3ebc000
commit 27edd829d7

View file

@ -112,7 +112,8 @@ class build_scripts (Command):
if f:
f.close()
else:
f.close()
if f:
f.close()
self.copy_file(script, outfile)
if os.name == 'posix':