#11132: pass optimize parameter to recursive call in compileall.compile_dir(). Reviewed by Eric A.

This commit is contained in:
Georg Brandl 2011-02-07 12:36:54 +00:00
parent ca583b66c8
commit 4543846517
4 changed files with 15 additions and 1 deletions

View file

@ -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