summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/util.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
index 563e47c..8a8b77a 100644
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -369,6 +369,7 @@ byte_compile(files, optimize=%s, force=%s,
elif optimize == 2:
cmd.insert(1, "-OO")
spawn(cmd, verbose=verbose, dry_run=dry_run)
+ os.remove(script_name)
# "Direct" byte-compilation: use the py_compile module to compile
# right here, right now. Note that the script generated in indirect