Mercurial > cpython-lru_cache-weakref
diff Lib/code.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 | f83115edf16a |
| children | 69f162dcd8b4 |
line wrap: on
line diff
--- a/Lib/code.py Sat Jan 20 19:12:54 2001 +0000 +++ b/Lib/code.py Sat Jan 20 19:54:20 2001 +0000 @@ -10,6 +10,9 @@ import traceback from codeop import compile_command +__all__ = ["InteractiveInterpreter","InteractiveConsole","interact", + "compile_command"] + def softspace(file, newvalue): oldvalue = 0 try:
