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

Method from_string

scapy/tools/UTscapy.py:189–190  ·  view source on GitHub ↗
(cls, x)

Source from the content-addressed store, hash-verified

187
188class EnumClass:
189 def from_string(cls, x):
190 return cls.__dict__[x.upper()]
191 from_string = classmethod(from_string)
192
193

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected