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

Method _resolve_alias

scapy/packet.py:463–471  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

461 return clone
462
463 def _resolve_alias(self, attr):
464 # type: (str) -> str
465 new_attr, version = self.deprecated_fields[attr]
466 warnings.warn(
467 "%s has been deprecated in favor of %s since %s !" % (
468 attr, new_attr, version
469 ), DeprecationWarning
470 )
471 return new_attr
472
473 def getfieldval(self, attr):
474 # type: (str) -> Any

Callers 4

__init__Method · 0.95
getfieldvalMethod · 0.95
getfield_and_valMethod · 0.95
setfieldvalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected