mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40: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):
|
if isinstance(value, basestring):
|
||||||
return value == "None"
|
return value == "None"
|
||||||
elif isinstance(value, (list, tuple)):
|
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):
|
elif isinstance(value, dict):
|
||||||
return not any(value)
|
return not any(value)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user