Return ord(x) when not already an int.
(x)
| 149 | |
| 150 | |
| 151 | def orb(x): |
| 152 | # type: (Union[int, str, bytes]) -> int |
| 153 | """Return ord(x) when not already an int.""" |
| 154 | if isinstance(x, int): |
| 155 | return x |
| 156 | return ord(x) |
| 157 | |
| 158 | |
| 159 | def bytes_hex(x): |
no outgoing calls
no test coverage detected