From: Éric Araujo Date: Thu, 23 Dec 2010 18:44:31 +0000 (+0000) Subject: Nits: use a real boolean, make one docstring more similar to the other ones X-Git-Tag: v3.2rc1~369 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=413d7b4f24004fe2358f9bf941ff0ed8757726a3;p=python Nits: use a real boolean, make one docstring more similar to the other ones --- 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.