HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/virtualenv/util/__pycache__/six.cpython-310.pyc
o

$�"b��@s�dZddlmZddlmZmZmZmZzddlmZWne	y*d
dd�ZYnwz	dd	lm
Z
WdSe	yCd
d
d�Z
YdSw)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�strictcCs4t|t�r|�||�St|t�r|Stdt|���)z�Coerce *s* to six.text_type.
        For Python 2:
        - `unicode` -> `unicode`
        - `str` -> `unicode`
        For Python 3:
        - `str` -> `str`
        - `bytes` -> decoded to `str`
        �not expecting type '%s')�
isinstancer�decoder�	TypeError�type��s�encoding�errors�r�5/usr/lib/python3/dist-packages/virtualenv/util/six.pyrs

	
r)�
ensure_strcCsZt|ttf�stdt|���trt|t�r|�||�}|Str+t|t�r+|�||�}|S)z�Coerce *s* to `str`.
        For Python 2:
        - `unicode` -> encoded to `str`
        - `str` -> `str`
        For Python 3:
        - `str` -> `str`
        - `bytes` -> decoded to `str`
        r
)	rrrr
rr�encoderrrrrrr#s	�rN)rr	)�__doc__�
__future__r�sixrrrrr�ImportErrorrrrrr�<module>s��