mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
minor speedup
This commit is contained in:
parent
094dc91e2d
commit
82e1e61554
|
@ -2727,7 +2727,13 @@ def isNoneValue(value):
|
|||
if isinstance(value, basestring):
|
||||
return value == "None"
|
||||
elif isinstance(value, (list, tuple)):
|
||||
return isNoneValue(value[0]) if len(value) == 1 else not any(filter(lambda x: x and x != "None", value))
|
||||
if len(value) == 1:
|
||||
return isNoneValue(value[0])
|
||||
else:
|
||||
for i in xrange(len(value)):
|
||||
if value[i] and value[i] != "None":
|
||||
return False
|
||||
return True
|
||||
elif isinstance(value, dict):
|
||||
return not any(value)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user