MCPcopy Index your code
hub / github.com/secdev/scapy / _validate_local

Function _validate_local

scapy/main.py:197–200  ·  view source on GitHub ↗

Returns whether or not a variable should be imported.

(k)

Source from the content-addressed store, hash-verified

195
196
197def _validate_local(k):
198 # type: (str) -> bool
199 """Returns whether or not a variable should be imported."""
200 return k[0] != "_" and k not in ["range", "map"]
201
202
203# This is ~/.config/scapy

Callers 4

_loadFunction · 0.85
_scapy_prestart_builtinsFunction · 0.85
_scapy_builtinsFunction · 0.85
_scapy_extsFunction · 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…