Patch #1696. Don't attempt to call None.close() in dry-run mode.
This commit is contained in:
parent
ff36b2ce00
commit
9b1f5a4740
|
@ -111,7 +111,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':
|
||||||
|
|
Loading…
Reference in New Issue