Load Scapy exts and return their builtins
()
| 476 | |
| 477 | |
| 478 | def _scapy_exts(): |
| 479 | # type: () -> Dict[str, Any] |
| 480 | """Load Scapy exts and return their builtins""" |
| 481 | from scapy.config import conf |
| 482 | res = {} |
| 483 | for modname, spec in conf.exts.all_specs.items(): |
| 484 | if spec.default: |
| 485 | mod = sys.modules[modname] |
| 486 | res.update({ |
| 487 | k: v |
| 488 | for k, v in mod.__dict__.copy().items() |
| 489 | if _validate_local(k) |
| 490 | }) |
| 491 | return res |
| 492 | |
| 493 | |
| 494 | @overload |
no test coverage detected
searching dependent graphs…