Commit 30e73c78 authored by Guido van Rossum's avatar Guido van Rossum

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

parent 200d0eac
......@@ -111,7 +111,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':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment