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

Function firstNotNone

lib/core/common.py:5539–5554  ·  view source on GitHub ↗

Returns first not-None value from a given list of arguments >>> firstNotNone(None, None, 1, 2, 3) 1

(*args)

Source from the content-addressed store, hash-verified

5537 return value
5538
5539def firstNotNone(*args):
5540 """
5541 Returns first not-None value from a given list of arguments
5542
5543 >>> firstNotNone(None, None, 1, 2, 3)
5544 1
5545 """
5546
5547 retVal = None
5548
5549 for _ in args:
5550 if _ is not None:
5551 retVal = _
5552 break
5553
5554 return retVal
5555
5556def removePostHintPrefix(value):
5557 """

Callers 2

_Function · 0.90
_oneShotErrorUseFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…