mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Issue #11223: Replace threading._info() by sys.thread_info
This commit is contained in:
parent
fab6c70770
commit
d5c355ccc7
13 changed files with 119 additions and 108 deletions
|
@ -19,7 +19,7 @@ from collections import deque
|
|||
|
||||
__all__ = ['active_count', 'Condition', 'current_thread', 'enumerate', 'Event',
|
||||
'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Barrier',
|
||||
'Timer', 'setprofile', 'settrace', 'local', 'stack_size', '_info']
|
||||
'Timer', 'setprofile', 'settrace', 'local', 'stack_size']
|
||||
|
||||
# Rename some stuff so "from threading import *" is safe
|
||||
_start_new_thread = _thread.start_new_thread
|
||||
|
@ -31,7 +31,6 @@ try:
|
|||
except AttributeError:
|
||||
_CRLock = None
|
||||
TIMEOUT_MAX = _thread.TIMEOUT_MAX
|
||||
_info = _thread.info
|
||||
del _thread
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue