mirror of https://github.com/python/cpython
Patch #1696. Don't attempt to call None.close() in dry-run mode.
This commit is contained in:
parent
ff36b2ce00
commit
9b1f5a4740
|
@ -111,6 +111,7 @@ class build_scripts (Command):
|
|||
if f:
|
||||
f.close()
|
||||
else:
|
||||
if f:
|
||||
f.close()
|
||||
self.copy_file(script, outfile)
|
||||
|
||||
|
|
Loading…
Reference in New Issue