mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#11132: pass optimize parameter to recursive call in compileall.compile_dir(). Reviewed by Eric A.
This commit is contained in:
parent
ca583b66c8
commit
4543846517
4 changed files with 15 additions and 1 deletions
|
@ -58,7 +58,7 @@ def compile_dir(dir, maxlevels=10, ddir=None, force=False, rx=None,
|
|||
elif (maxlevels > 0 and name != os.curdir and name != os.pardir and
|
||||
os.path.isdir(fullname) and not os.path.islink(fullname)):
|
||||
if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
|
||||
quiet, legacy):
|
||||
quiet, legacy, optimize):
|
||||
success = 0
|
||||
return success
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue