Skip to content

Commit 96a8370

Browse files
fix threading
1 parent 279daf1 commit 96a8370

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

Lib/threading.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,24 @@
3232
'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread',
3333
'Timer', 'setprofile', 'settrace', 'local', 'stack_size']
3434

35-
_start_new_thread = thread.start_new_thread
36-
_allocate_lock = thread.allocate_lock
37-
_get_ident = thread.get_ident
38-
39-
# def _get_ident():
40-
# warnings.warnpy3k_with_fix("_get_ident() is renamed in 3.x", "use get_ident() instead",
41-
# stacklevel=2)
42-
# thread.get_ident
35+
def _get_ident():
36+
warnings.warnpy3k_with_fix("_get_ident() is renamed in 3.x", "use get_ident() instead",
37+
stacklevel=2)
38+
thread.get_ident
4339

44-
# def _start_new_thread():
45-
# warnings.warnpy3k_with_fix("_start_new_thread() is removed in 3.x", "use start_new_thread() instead",
46-
# stacklevel=2)
47-
# thread.start_new_thread
40+
def _start_new_thread():
41+
warnings.warnpy3k_with_fix("_start_new_thread() is removed in 3.x", "use start_new_thread() instead",
42+
stacklevel=2)
43+
thread.start_new_thread
4844

49-
# def _allocate_lock():
50-
# warnings.warnpy3k_with_fix("_allocate_lock() is removed in 3.x", "use allocate_lock instead",
51-
# stacklevel=2)
52-
# thread.allocate_lock
45+
def _allocate_lock():
46+
warnings.warnpy3k_with_fix("_allocate_lock() is removed in 3.x", "use allocate_lock instead",
47+
stacklevel=2)
48+
thread.allocate_lock
5349

50+
_start_new_thread = thread.start_new_thread
51+
_allocate_lock = thread.allocate_lock
52+
_get_ident = thread.get_ident
5453
ThreadError = thread.error
5554
del thread
5655

0 commit comments

Comments
 (0)