(self, attr)
| 402 | super(EtherDA, self).__setitem__(attr, val) |
| 403 | |
| 404 | def __getitem__(self, attr): |
| 405 | # type: (int) -> Any |
| 406 | if isinstance(attr, str): |
| 407 | warnings.warn( |
| 408 | "Please use 'ETHER_TYPES.%s'" % attr, |
| 409 | DeprecationWarning |
| 410 | ) |
| 411 | return super(EtherDA, self).__getattr__(attr) |
| 412 | return super(EtherDA, self).__getitem__(attr) |
| 413 | |
| 414 | |
| 415 | @scapy_data_cache("ethertypes") |
nothing calls this directly
no test coverage detected