Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 094dc91 commit 82e1e61Copy full SHA for 82e1e61
1 file changed
lib/core/common.py
@@ -2727,7 +2727,13 @@ def isNoneValue(value):
2727
if isinstance(value, basestring):
2728
return value == "None"
2729
elif isinstance(value, (list, tuple)):
2730
- return isNoneValue(value[0]) if len(value) == 1 else not any(filter(lambda x: x and x != "None", value))
+ if len(value) == 1:
2731
+ return isNoneValue(value[0])
2732
+ else:
2733
+ for i in xrange(len(value)):
2734
+ if value[i] and value[i] != "None":
2735
+ return False
2736
+ return True
2737
elif isinstance(value, dict):
2738
return not any(value)
2739
else:
0 commit comments