This commit is contained in:
Benjamin Peterson 2012-09-26 00:25:10 -04:00
parent 8286951f57
commit 52c62d8697
1 changed files with 2 additions and 2 deletions

View File

@ -419,8 +419,8 @@ def cache_from_source(path, debug_override=None):
.pyc/.pyo file calculated as if the .py file were imported. The extension .pyc/.pyo file calculated as if the .py file were imported. The extension
will be .pyc unless sys.flags.optimize is non-zero, then it will be .pyo. will be .pyc unless sys.flags.optimize is non-zero, then it will be .pyo.
If debug_override is not None, then it must be a boolean and is taken as If debug_override is not None, then it must be a boolean and is used in
the value of bool(sys.flags.optimize) instead. place of sys.flags.optimize.
If sys.implementation.cache_tag is None then NotImplementedError is raised. If sys.implementation.cache_tag is None then NotImplementedError is raised.