aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/distutils/command/build_scripts.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/command/build_scripts.py')
-rw-r--r--Lib/distutils/command/build_scripts.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py
index 227bb9c7a1e..7b44264cc22 100644
--- a/Lib/distutils/command/build_scripts.py
+++ b/Lib/distutils/command/build_scripts.py
@@ -110,7 +110,8 @@ class build_scripts(Command):
if f:
f.close()
else:
- f.close()
+ if f:
+ f.close()
self.copy_file(script, outfile)
if os.name == 'posix':