summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-12-23 18:44:31 (GMT)
committerÉric Araujo <merwok@netwok.org>2010-12-23 18:44:31 (GMT)
commit413d7b4f24004fe2358f9bf941ff0ed8757726a3 (patch)
treed816529e34fb9d770525c61c15520d59c53bdd77 /Lib
parentd699255b42fc075b2fc7259e1394a50bab928459 (diff)
downloadcpython-413d7b4f24004fe2358f9bf941ff0ed8757726a3.zip
cpython-413d7b4f24004fe2358f9bf941ff0ed8757726a3.tar.gz
cpython-413d7b4f24004fe2358f9bf941ff0ed8757726a3.tar.bz2
Nits: use a real boolean, make one docstring more similar to the other ones
Diffstat (limited to 'Lib')
-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.