(self,
pkt, # type: Optional[Packet]
x, # type: Any
)
| 3268 | return self._fixup_val(super(FlagsField, self).i2h(pkt, x)) |
| 3269 | |
| 3270 | def i2repr(self, |
| 3271 | pkt, # type: Optional[Packet] |
| 3272 | x, # type: Any |
| 3273 | ): |
| 3274 | # type: (...) -> str |
| 3275 | if isinstance(x, (list, tuple)): |
| 3276 | return repr(type(x)( |
| 3277 | "None" if v is None else str(self._fixup_val(v)) for v in x |
| 3278 | )) |
| 3279 | return "None" if x is None else str(self._fixup_val(x)) |
| 3280 | |
| 3281 | |
| 3282 | MultiFlagsEntry = collections.namedtuple('MultiFlagsEntry', ['short', 'long']) |
nothing calls this directly
no test coverage detected