mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
add ThreadError to threading.__all__ (closes #12679)
This commit is contained in:
parent
b1290a5295
commit
7761b951db
@ -20,7 +20,7 @@ from _weakrefset import WeakSet
|
|||||||
|
|
||||||
__all__ = ['active_count', 'Condition', 'current_thread', 'enumerate', 'Event',
|
__all__ = ['active_count', 'Condition', 'current_thread', 'enumerate', 'Event',
|
||||||
'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Barrier',
|
'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Barrier',
|
||||||
'Timer', 'setprofile', 'settrace', 'local', 'stack_size']
|
'Timer', 'ThreadError', 'setprofile', 'settrace', 'local', 'stack_size']
|
||||||
|
|
||||||
# Rename some stuff so "from threading import *" is safe
|
# Rename some stuff so "from threading import *" is safe
|
||||||
_start_new_thread = _thread.start_new_thread
|
_start_new_thread = _thread.start_new_thread
|
||||||
|
Loading…
Reference in New Issue
Block a user