(buf, sep=' ')
| 45 | |
| 46 | |
| 47 | def to_hexstr(buf, sep=' '): |
| 48 | return sep.join("{0:02x}".format(ord(c)) for c in buf).upper() |
| 49 | |
| 50 | # return a normalized code, or None if input is invalid |
| 51 | def convert_hexstr(code): |
no outgoing calls
no test coverage detected