
    r}f|                     4   d dl mZ d dlZd dlZdZ	  ej                    Zn# e$ r Y nw xY wep ej                    ZddZddZ	ddZ
ddZej        d          dk    rdZefZeZd d	lmZmZ d d
lmZmZ d Zd ZdS dZeefZeZd d	lmZmZ d dlZd Zd ZdS )    )with_statementNc                 >    |pt           }|                     |          S N)_DEFAULT_ENCODINGdecodesencodings     K/var/www/rtfcompare/venv/lib/python3.11/site-packages/pypandoc/py3compat.py_decoder          ,,H88H    c                 >    |pt           }|                     |          S r   )r   encode)ur
   s     r   _encoder      r   r   c                 P    t          | t                    rt          | |          S | S r   )
isinstancebytesr   r   s     r   cast_unicoder      s)    !U $q(###Hr   c                 P    t          | t                    st          | |          S | S r   )r   r   r   r   s     r   
cast_bytesr   %   s)    a $q(###Hr      T)urljoinurlparse)pathname2urlurl2pathnamec                 <    t          dt          |                     S Nzfile:)r   r   paths    r   path2urlr"   7   s    wT 2 2333r   c                 D    t          t          |           j                  S r   )r   r   r!   urls    r   url2pathr&   ;   s    HSMM.///r   Fc                 F    t          dt          j        |                     S r   )r   urllibr   r    s    r   r"   r"   H   s    w 3D 9 9:::r   c                 N    t          j        t          |           j                  S r   )r(   r   r   r!   r$   s    r   r&   r&   L   s    "8C==#5666r   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   <module>r9      s   & % % % % %  



  	 4355 	 	 	D	 &A)?)?)A)A    
   
       A!
C6LL /.......999999994 4 40 0 0 0 0 C>LL********MMM; ; ;7 7 7 7 7s   " **