AlkantarClanX12

Your IP : 18.191.215.30


Current Path : /opt/alt/python37/lib/python3.7/site-packages/virtualenv/util/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/virtualenv/util/__pycache__/six.cpython-37.pyc

B

���a��@s�dZddlmZddlmZmZmZmZyddlmZWne	k
rVd
dd�ZYnXydd	lm
Z
Wne	k
r�dd
d�Z
YnXdS)z�Backward compatibility layer with older version of six.

This is used to avoid virtualenv requring a version of six newer than what
the system may have.
�)�absolute_import)�PY2�PY3�binary_type�	text_type)�ensure_text�utf-8�strictcCs8t|t�r|�||�St|t�r$|Stdt|���dS)z�Coerce *s* to six.text_type.
        For Python 2:
        - `unicode` -> `unicode`
        - `str` -> `unicode`
        For Python 3:
        - `str` -> `str`
        - `bytes` -> decoded to `str`
        znot expecting type '%s'N)�
isinstancer�decoder�	TypeError�type)�s�encoding�errors�r�D/opt/alt/python37/lib/python3.7/site-packages/virtualenv/util/six.pyrs
	

r)�
ensure_strcCsXt|ttf�stdt|���tr:t|t�r:|�||�}ntrTt|t�rT|�||�}|S)z�Coerce *s* to `str`.
        For Python 2:
        - `unicode` -> encoded to `str`
        - `str` -> `str`
        For Python 3:
        - `str` -> `str`
        - `bytes` -> decoded to `str`
        znot expecting type '%s')	r
rrrr
r�encoderr)rrrrrrr#s	rN)rr	)rr	)�__doc__�
__future__rZsixrrrrr�ImportErrorrrrrr�<module>s