-Q d dl Z defdZdS ) Npc z | n$# t $ r t j | cY S w xY w| S )z
Make safe sequence from path-like string
Useful if p contains unprintable sequence
If p is safe to be printed (e.g. via logger) return it as is
If it can cause an exception, return bytes instead
)encodeUnicodeEncodeErrorosfsencode)r s X/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/utils/safe_sequence.pypathr
sL
{1~~
Hs 88)r strr
r