MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _format_report_value

Function _format_report_value

IntelOSINT.py:19815–19825  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

19813 return {"md5": md5_h.hexdigest(), "sha256": sha256_h.hexdigest()}
19814
19815 def _format_report_value(v):
19816 if v is None:
19817 return "N/D"
19818 if isinstance(v, (dict, list)):
19819 try:
19820 return json.dumps(v, ensure_ascii=False, indent=2, default=str)
19821 except Exception:
19822 return str(v)
19823 if isinstance(v, bool):
19824 return "Sì" if v else "No"
19825 return str(v)
19826
19827 def _latin1(v):
19828 return str(v).encode("latin-1", "ignore").decode("latin-1")

Callers 1

_build_media_reportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected