
    	aT                     $   d Z ddlZ	 ddlmZ 	 ddlmZ 	 ddlm	Z	 dZ
dej                  cxk  xr dk  nc Zd	ej                  cxk  xr d
k  nc ZereZddZddZy# e$ r	 ddlmZ Y ^w xY w# e$ r	 ddlmZ Y hw xY w# e$ r	 ddlm	Z	 Y rw xY w)z0Compatibility module for Python 2 and 3 support.    N)quote)	parse_qsl)	urlencode)to_bytesto_strurlquoter   r   )   r   )   r   )      )r      c                 `    t        | d      r!t        | t              s| j                  |      } | S )z0Ensure that b is text in the specified encoding.decode)hasattr
isinstanceunicoder   )bencodings     0/usr/lib/python3/dist-packages/rfc3986/compat.pyr   r   0   s(    q(Jq'$:HHXH    c                 `    t        | d      r!t        | t              s| j                  |      } | S )z6Ensure that s is converted to bytes from the encoding.encode)r   r   bytesr   )sr   s     r   r   r   7   s(    q(Jq%$8HHXHr   )zutf-8)__doc__sysurllib.parser   r   ImportErrorurllibr   urlparser   __all__version_infoPY3PY2strr   r   r    r   r   <module>r'      s    7 
).#&!&   )6)  )6) GI  )()
  #"#
  ! !s3   A A0 B A-,A-0A>=A>BB