o
    Âif|  ã                   @   s   d dl mZ d dlZd dlZdZze ¡ ZW n	 ey   Y nw ep%e ¡ Zddd„Zddd„Z	ddd„Z
dd	d
„Zejd  dkrbdZefZeZd dlmZmZ d dlmZmZ dd„ Zdd„ ZdS dZeefZeZd dlmZmZ d dlZdd„ Zdd„ ZdS )é    )Úwith_statementNc                 C   ó   |pt }|  |¡S ©N)Ú_DEFAULT_ENCODINGÚdecode©ÚsÚencoding© r
   úK/var/www/html/corbot_env/lib/python3.10/site-packages/pypandoc/py3compat.pyÚ_decode   ó   
r   c                 C   r   r   )r   Úencode)Úur	   r
   r
   r   Ú_encode   r   r   c                 C   s   t | tƒr
t| |ƒS | S r   )Ú
isinstanceÚbytesr   r   r
   r
   r   Úcast_unicode   s   

r   c                 C   s   t | tƒs
t| |ƒS | S r   )r   r   r   r   r
   r
   r   Ú
cast_bytes%   s   

r   é   T)ÚurljoinÚurlparse)Úpathname2urlÚurl2pathnamec                 C   s   t dt| ƒƒS ©Nzfile:)r   r   ©Úpathr
   r
   r   Úpath2url7   ó   r   c                 C   s   t t| ƒjƒS r   )r   r   r   ©Úurlr
   r
   r   Úurl2path;   r   r!   Fc                 C   s   t dt | ¡ƒS r   )r   Úurllibr   r   r
   r
   r   r   H   ó   c                 C   s   t  t| ƒj¡S r   )r"   r   r   r   r   r
   r
   r   r!   L   r#   r   )Ú
__future__r   ÚlocaleÚsysr   ÚgetpreferredencodingÚ	ExceptionÚgetdefaultencodingr   r   r   r   Úversion_infoÚPY3ÚstrÚstring_typesÚunicode_typeÚurllib.parser   r   Úurllib.requestr   r   r   r!   Úunicoder"   r
   r
   r
   r   Ú<module>   s:   ÿ



