Commit efab6dc2 authored by Guido van Rossum's avatar Guido van Rossum

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

parent f07d668d
...@@ -111,6 +111,7 @@ class build_scripts (Command): ...@@ -111,6 +111,7 @@ class build_scripts (Command):
if f: if f:
f.close() f.close()
else: else:
if f:
f.close() f.close()
self.copy_file(script, outfile) self.copy_file(script, outfile)
......
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