summaryrefslogtreecommitdiffstats
path: root/Lib/compileall.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/compileall.py')
-rw-r--r--Lib/compileall.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py
index 94d1c9e..1030d8c 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.