MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / isNoneValue

Function isNoneValue

lib/core/common.py:4345–4368  ·  view source on GitHub ↗

Returns whether the value is unusable (None or '') >>> isNoneValue(None) True >>> isNoneValue('None') True >>> isNoneValue('') True >>> isNoneValue([]) True >>> isNoneValue([2]) False

(value)

Source from the content-addressed store, hash-verified

4343 return retVal
4344
4345def isNoneValue(value):
4346 """
4347 Returns whether the value is unusable (None or '')
4348
4349 >>> isNoneValue(None)
4350 True
4351 >>> isNoneValue('None')
4352 True
4353 >>> isNoneValue('')
4354 True
4355 >>> isNoneValue([])
4356 True
4357 >>> isNoneValue([2])
4358 False
4359 """
4360
4361 if isinstance(value, six.string_types):
4362 return value in ("None", "")
4363 elif isListLike(value):
4364 return all(isNoneValue(_) for _ in value)
4365 elif isinstance(value, dict):
4366 return not any(value)
4367 else:
4368 return value is None
4369
4370def isNullValue(value):
4371 """

Callers 15

pivotDumpTableFunction · 0.90
fileExistsThreadFunction · 0.90
_goInferenceProxyFunction · 0.90
userSettingsMethod · 0.90
_xpCmdshellTestMethod · 0.90
unionThreadFunction · 0.90
unionUseFunction · 0.90
getDbsMethod · 0.90
getTablesMethod · 0.90
getColumnsMethod · 0.90
getStatementsMethod · 0.90
readFileMethod · 0.90

Calls 1

isListLikeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…