mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
More Python 3.9 fixing (can't wait for Python 10.7)
This commit is contained in:
parent
013af3235e
commit
1023da405a
3 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ def timeout(func, args=None, kwargs=None, duration=1, default=None):
|
|||
thread.start()
|
||||
thread.join(duration)
|
||||
|
||||
if thread.isAlive():
|
||||
if thread.is_alive():
|
||||
return default, TIMEOUT_STATE.TIMEOUT
|
||||
else:
|
||||
return thread.result, thread.timeout_state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue