Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04cc88d

Browse files
committed
Remove the temporary byte-compilation script when we're done with it.
1 parent c1acc69 commit 04cc88d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/distutils/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ def byte_compile (py_files,
369369
elif optimize == 2:
370370
cmd.insert(1, "-OO")
371371
spawn(cmd, verbose=verbose, dry_run=dry_run)
372+
os.remove(script_name)
372373

373374
# "Direct" byte-compilation: use the py_compile module to compile
374375
# right here, right now. Note that the script generated in indirect

0 commit comments

Comments
 (0)