Mercurial > cpython-lru_cache-weakref
diff Lib/codeop.py @ 16070:b5345e99596b legacy-trunk
added __all__ lists to a number of Python modules
added test script and expected output file as well
this closes patch 103297.
__all__ attributes will be added to other modules without first submitting
a patch, just adding the necessary line to the test script to verify
more-or-less correct implementation.
| author | Skip Montanaro <skip@pobox.com> |
|---|---|
| date | Sat, 20 Jan 2001 19:54:20 +0000 |
| parents | f8ddd2340398 |
| children | 69f162dcd8b4 |
line wrap: on
line diff
--- a/Lib/codeop.py Sat Jan 20 19:12:54 2001 +0000 +++ b/Lib/codeop.py Sat Jan 20 19:54:20 2001 +0000 @@ -4,6 +4,8 @@ import string import traceback +__all__ = ["compile_command"] + def compile_command(source, filename="<input>", symbol="single"): r"""Compile a command and determine whether it is incomplete.
