From 413d7b4f24004fe2358f9bf941ff0ed8757726a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=89ric=20Araujo?= Date: Thu, 23 Dec 2010 18:44:31 +0000 Subject: [PATCH] Nits: use a real boolean, make one docstring more similar to the other ones --- Lib/compileall.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Lib/compileall.py b/Lib/compileall.py index 94d1c9e66c..1030d8c8f0 100644 --- a/Lib/compileall.py +++ b/Lib/compileall.py @@ -62,9 +62,12 @@ def compile_dir(dir, maxlevels=10, ddir=None, force=False, rx=None, success = 0 return success -def compile_file(fullname, ddir=None, force=0, rx=None, quiet=False, +def compile_file(fullname, ddir=None, force=False, rx=None, quiet=False, legacy=False, optimize=-1): - """Byte-compile file. + """Byte-compile one file. + + Arguments (only fullname is required): + fullname: the file to byte-compile ddir: if given, the directory name compiled in to the byte-code file. -- 2.40.0