(self, string)
| 95 | os.makedirs(path) |
| 96 | |
| 97 | def hex_to_bytes(self, string): |
| 98 | try: |
| 99 | hex_string = re.sub(r'[^0-9a-fA-F]', '', string) |
| 100 | |
| 101 | if len(re.sub(r"\s+", "", string)) != len(hex_string): |
| 102 | return string |
| 103 | |
| 104 | return binascii.unhexlify(hex_string) |
| 105 | except binascii.Error: |
| 106 | return string |
| 107 | |
| 108 | def int_to_hex(self, number): |
| 109 | return format(number, '02X') |
no outgoing calls
no test coverage detected