o
    TÃi  ã                   @   sô   d Z ddlZejd dk r4dZdd„ Zdd„ ZddlZej ZZe	Z
eZefZeefZeZeZd	d
„ Zn@dZejdd… dkrFddlmZ nddlmZ ddlZdd„ Zdd„ ZddlZejZejZeZ
eZefZefZdd„ Zdd
„ Zed ZdS )zPython 3 compatibility shims
é    Né   Fc                 C   ó   | S ©N© ©Úsr   r   ú@/home/ubuntu/.local/lib/python3.10/site-packages/hjson/compat.pyÚb   ó   r	   c                 C   s
   t | dƒS )NÚunicode_escape)Úunicoder   r   r   r   Úu   ó   
r   c                 C   s
   |   d¡S )NÚhex)Údecoder   r   r   r   Úfromhex   r   r   Té   )r   é   )Úreloadc                 C   s   t  | ¡d S )Nr   )ÚcodecsÚlatin_1_encoder   r   r   r   r	      s   c                 C   r   r   r   r   r   r   r   r      r
   c                 C   s   t t| ƒƒS r   )r   Úchrr   r   r   r   Úunichr(   s   r   c                 C   s
   t  | ¡S r   )Úbytesr   r   r   r   r   r   +   r   éÿÿÿÿ)Ú__doc__ÚsysÚversion_infoÚPY3r	   r   Ú	cStringIOÚStringIOÚBytesIOr   Ú	text_typeÚstrÚbinary_typeÚ
basestringÚstring_typesÚintÚlongÚinteger_typesr   r   Úreload_moduler   Ú	importlibÚimpr   Úior   Ú	long_typer   r   r   r   Ú<module>   s@    

