MCPcopy Create free account
hub / github.com/secdev/scapy / get_if_exist

Function get_if_exist

scapy/tools/UTscapy.py:337–338  ·  view source on GitHub ↗
(key, default)

Source from the content-addressed store, hash-verified

335 print(" %s Loaded config file" % arrow, config_path)
336
337 def get_if_exist(key, default):
338 return data[key] if key in data else default
339 return Bunch(testfiles=get_if_exist("testfiles", []),
340 breakfailed=get_if_exist("breakfailed", True),
341 remove_testfiles=get_if_exist("remove_testfiles", []),

Callers 1

parse_config_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…