mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-37804: Remove the deprecated method threading.Thread.isAlive() (GH-15225)
This commit is contained in:
parent
f9590edfea
commit
44046fe4fc
4 changed files with 6 additions and 12 deletions
|
@ -1088,16 +1088,6 @@ class Thread:
|
|||
self._wait_for_tstate_lock(False)
|
||||
return not self._is_stopped
|
||||
|
||||
def isAlive(self):
|
||||
"""Return whether the thread is alive.
|
||||
|
||||
This method is deprecated, use is_alive() instead.
|
||||
"""
|
||||
import warnings
|
||||
warnings.warn('isAlive() is deprecated, use is_alive() instead',
|
||||
DeprecationWarning, stacklevel=2)
|
||||
return self.is_alive()
|
||||
|
||||
@property
|
||||
def daemon(self):
|
||||
"""A boolean value indicating whether this thread is a daemon thread.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue