MCPcopy Create free account
hub / github.com/Fadi002/de4py / d2

Method d2

de4py/engines/onyx/string_decoder.py:286–290  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

284 r'(?:\.decode\s*\([^)]*\))?'
285 )
286 def d2(m):
287 try:
288 return repr(bytes.fromhex(m.group(1)).decode('utf-8', errors='replace'))
289 except Exception:
290 return m.group(0)
291 return p2.sub(d2, source)
292
293 def _decode_bytearray_literals(self, source: str) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected