Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1023da4

Browse files
committed
More Python 3.9 fixing (can't wait for Python 10.7)
1 parent 013af32 commit 1023da4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4007,7 +4007,7 @@ def _thread(regex):
40074007
thread.start()
40084008
thread.join(REFLECTED_REPLACEMENT_TIMEOUT)
40094009

4010-
if thread.isAlive():
4010+
if thread.is_alive():
40114011
kb.reflectiveMechanism = False
40124012
retVal = content
40134013
if not suppressWarning:

lib/core/threads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
175175
while alive:
176176
alive = False
177177
for thread in threads:
178-
if thread.isAlive():
178+
if thread.is_alive():
179179
alive = True
180180
time.sleep(0.1)
181181

lib/utils/timeout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def run(self):
3131
thread.start()
3232
thread.join(duration)
3333

34-
if thread.isAlive():
34+
if thread.is_alive():
3535
return default, TIMEOUT_STATE.TIMEOUT
3636
else:
3737
return thread.result, thread.timeout_state

0 commit comments

Comments
 (0)