(m)
| 274 | r'(?:\.decode\s*\([^)]*\))?' |
| 275 | ) |
| 276 | def d1(m): |
| 277 | try: |
| 278 | return repr(bytes.fromhex(m.group(1).replace(' ','').replace('\n','')).decode('utf-8', errors='replace')) |
| 279 | except Exception: |
| 280 | return m.group(0) |
| 281 | source = p1.sub(d1, source) |
| 282 | p2 = re.compile( |
| 283 | r'codecs\.decode\s*\(\s*b?["\']([0-9a-fA-F]+)["\']\s*,\s*["\']hex(?:_codec)?["\']\s*\)' |
nothing calls this directly
no outgoing calls
no test coverage detected