Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/virtualenv/util/__pycache__/ |
Upload File : |
o $�"b� � @ s� d Z ddlmZ ddlmZmZmZmZ zddlmZ W n e y* d dd�ZY nw z dd lm Z W dS e yC d d d�Z Y dS w )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�strictc C s4 t | t�r| �||�S t | t�r| S tdt| � ��)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.pyr s r )� ensure_strc C sZ t | ttf�stdt| � ��trt | t�r| �||�} | S tr+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 ) r r r r r r �encoder r r r r r r # s �r N)r r )�__doc__� __future__r �sixr r r r r �ImportErrorr r r r r �<module> s ��