Add __all__. (Brett Cannon.)

This commit is contained in:
Guido van Rossum 2002-12-30 21:59:55 +00:00
parent e39a80c362
commit c262a1f51c
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@ import traceback
import StringIO
# Rename some stuff so "from threading import *" is safe
__all__ = ['activeCount', 'Condition', 'currentThread', 'enumerate', 'Event',
'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Timer']
_sys = sys
del sys