o
    €Ýhl  ã                   @   sô   d Z ddlZzddlmZ W n ey   ddlmZ Y nw zddlmZ W n ey5   ddlmZ Y nw zddlm	Z	 W n eyM   ddlm	Z	 Y nw dZ
dej  koZdk n  Zd	ej  kogd
k n  ZerneZddd„Zddd„ZdS )z0Compatibility module for Python 2 and 3 support.é    N)Úquote)Ú	parse_qsl)Ú	urlencode)Úto_bytesÚto_strÚurlquoter   r   )é   r   )é   r   )é   é   )r
   é   úutf-8c                 C   ó"   t | dƒrt| tƒs|  |¡} | S )z0Ensure that b is text in the specified encoding.Údecode)ÚhasattrÚ
isinstanceÚunicoder   )ÚbÚencoding© r   úV/var/www/html/magazine_api/magazine_env/lib/python3.10/site-packages/rfc3986/compat.pyr   1   ó   
r   c                 C   r   )z6Ensure that s is converted to bytes from the encoding.Úencode)r   r   Úbytesr   )Úsr   r   r   r   r   8   r   r   )r   )Ú__doc__ÚsysÚurllib.parser   r   ÚImportErrorÚurllibr   Úurlparser   Ú__all__Úversion_infoÚPY3ÚPY2Ústrr   r   r   r   r   r   r   Ú<module>   s0   ÿÿÿ
