|
32 | 32 | 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread',
|
33 | 33 | 'Timer', 'setprofile', 'settrace', 'local', 'stack_size']
|
34 | 34 |
|
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 |
43 | 39 |
|
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 |
48 | 44 |
|
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 |
53 | 49 |
|
| 50 | +_start_new_thread = thread.start_new_thread |
| 51 | +_allocate_lock = thread.allocate_lock |
| 52 | +_get_ident = thread.get_ident |
54 | 53 | ThreadError = thread.error
|
55 | 54 | del thread
|
56 | 55 |
|
|
0 commit comments