mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-01 18:33:12 +03:00
More Python 3.9 fixing (can't wait for Python 10.7)
This commit is contained in:
parent
013af3235e
commit
1023da405a
|
@ -4007,7 +4007,7 @@ def removeReflectiveValues(content, payload, suppressWarning=False):
|
||||||
thread.start()
|
thread.start()
|
||||||
thread.join(REFLECTED_REPLACEMENT_TIMEOUT)
|
thread.join(REFLECTED_REPLACEMENT_TIMEOUT)
|
||||||
|
|
||||||
if thread.isAlive():
|
if thread.is_alive():
|
||||||
kb.reflectiveMechanism = False
|
kb.reflectiveMechanism = False
|
||||||
retVal = content
|
retVal = content
|
||||||
if not suppressWarning:
|
if not suppressWarning:
|
||||||
|
|
|
@ -175,7 +175,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
|
||||||
while alive:
|
while alive:
|
||||||
alive = False
|
alive = False
|
||||||
for thread in threads:
|
for thread in threads:
|
||||||
if thread.isAlive():
|
if thread.is_alive():
|
||||||
alive = True
|
alive = True
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ def timeout(func, args=None, kwargs=None, duration=1, default=None):
|
||||||
thread.start()
|
thread.start()
|
||||||
thread.join(duration)
|
thread.join(duration)
|
||||||
|
|
||||||
if thread.isAlive():
|
if thread.is_alive():
|
||||||
return default, TIMEOUT_STATE.TIMEOUT
|
return default, TIMEOUT_STATE.TIMEOUT
|
||||||
else:
|
else:
|
||||||
return thread.result, thread.timeout_state
|
return thread.result, thread.timeout_state
|
||||||
|
|
Loading…
Reference in New Issue
Block a user