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

This commit is contained in:
Guido van Rossum 2008-01-02 18:59:36 +00:00
parent ff36b2ce00
commit 9b1f5a4740
1 changed files with 2 additions and 1 deletions

View File

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