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

Function flattenValue

lib/core/common.py:3695–3708  ·  view source on GitHub ↗

Returns an iterator representing flat representation of a given value >>> [_ for _ in flattenValue([['1'], [['2'], '3']])] ['1', '2', '3']

(value)

Source from the content-addressed store, hash-verified

3693 return value
3694
3695def flattenValue(value):
3696 """
3697 Returns an iterator representing flat representation of a given value
3698
3699 >>> [_ for _ in flattenValue([['1'], [['2'], '3']])]
3700 ['1', '2', '3']
3701 """
3702
3703 for i in iter(value):
3704 if isListLike(i):
3705 for j in flattenValue(i):
3706 yield j
3707 else:
3708 yield i
3709
3710def joinValue(value, delimiter=','):
3711 """

Callers 7

xpCmdshellEvalCmdMethod · 0.90
unionThreadFunction · 0.90
getDbsMethod · 0.90
copyExecCmdMethod · 0.90
getVersionMethod · 0.85
getVersionListMethod · 0.85
unArrayizeValueFunction · 0.85

Calls 1

isListLikeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…