
    Zi                     ,    d Z ddlmZ d	dededefdZdS )
z:
Utilities for handling unicode and other repetitive bits
    )AnyStrutf-8textencodingreturnc                     t          | t                    r|                     |          }n| }|                    dd          }|S )z#Return unicode text, no matter whatz

)
isinstancebytesdecodereplace)r   r   text_strs      K/root/projects/butler/venv/lib/python3.11/site-packages/frontmatter/util.pyur      sJ     $ H-- --HO    N)r   )__doc__typingr   strr    r   r   <module>r      s[          
 
F 
c 
 
 
 
 
 
 
r   