Kaydet (Commit) 27edd829 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst fed3ebc0
...@@ -112,7 +112,8 @@ class build_scripts (Command): ...@@ -112,7 +112,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':
......
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