[Python-checkins] r87446 - python/branches/py3k/Lib/compileall.py

eric.araujo python-checkins at python.org
Thu Dec 23 19:44:31 CET 2010


Author: eric.araujo
Date: Thu Dec 23 19:44:31 2010
New Revision: 87446

Log:
Nits: use a real boolean, make one docstring more similar to the other ones


Modified:
   python/branches/py3k/Lib/compileall.py

Modified: python/branches/py3k/Lib/compileall.py
==============================================================================
--- python/branches/py3k/Lib/compileall.py	(original)
+++ python/branches/py3k/Lib/compileall.py	Thu Dec 23 19:44:31 2010
@@ -62,9 +62,12 @@
                 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.


More information about the Python-checkins mailing list