mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Patch #1696. Don't attempt to close None in dry-run mode.
This commit is contained in:
parent
fed3ebc000
commit
27edd829d7
1 changed files with 2 additions and 1 deletions
|
@ -112,6 +112,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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue