$72 GRAYBYTE WORDPRESS FILE MANAGER $44

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.217.100
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/python3.8/site-packages/pip/_internal/utils/__pycache__/

HOME
Current File : /lib/python3.8/site-packages/pip/_internal/utils/__pycache__//compat.cpython-38.pyc
U

��.e]%�@s~dZddlmZmZddlZddlZddlZddlZddlZddl	Z	ddl
mZmZddl
mZddlmZer�ddlmZmZmZmZzddlZWnek
r�dZYnXeZzddlZWnVek
�rzddlmZWn.ek
�rddlZeje_eje_YnXYnXd	d
ddd
dddddg
Z e�!e"�Z#edk	�pDeZ$e�r�ddl%Z%z
e%j&Z&Wne'k
�rxdZ&YnXe&dk	Z(ndZ(ddl)m&Z&e�r�dd�Z*e�+de*�dZ,ndZ,d/dd�Z-dd�Z.e�r�d0dd�Z/n
d1dd�Z/dd
�Z0e�r
dd l%m1Z1d!d�Z2ndd"l3m4Z4d#d�Z2d$d%�Z5d&d'd(hZ6e	j7�8d)��pRe	j7d*k�oRej9d+kZ:d,d�Z;e<ed��rrd-d�Z=nd.d�Z=dS)2zKStuff that differs in different Python versions and platform
distributions.�)�absolute_import�divisionN)�PY2�	text_type)�IS_PYOPENSSL)�MYPY_CHECK_RUNNING)�Optional�Text�Tuple�Union)�	ipaddressr�uses_pycache�console_to_str�
native_str�get_path_uid�stdlib_pkgs�WINDOWS�samefile�get_terminal_size�get_extension_suffixesT)�cache_from_sourcecsD�fdd�t�j�j�D�}dd�|D�}d�dd�|D���jfS)Nc3s|]}�j|VqdS�N)�object)�.0�i��err��>/usr/lib/python3.8/site-packages/pip/_internal/utils/compat.py�	<genexpr>Lsz-backslashreplace_decode_fn.<locals>.<genexpr>css|]}t|�VqdSr)�ord)r�brrrrNs�css|]}d|VqdS)z\x%xNr)r�crrrrOs)�range�start�end�join)rZ	raw_bytesrrr�backslashreplace_decode_fnKsr(�backslashreplace_decode�backslashreplacecCs�t|t�r|St��}|r*t�|�jdkr.d}z|�|�}WnDtk
r�|dkrXd}d�	|�}t
�||�|j|td�}YnXt
t
tdd�dd�}|r�|j|d	d�}|�|�}|S)
a�
    For display or logging purposes, convert a bytes object (or text) to
    text (e.g. unicode in Python 2) safe for output.

    :param desc: An optional phrase describing the input data, for use in
        the log message if a warning is logged. Defaults to "Bytes object".

    This function should never error out and so can take a best effort
    approach. It is okay to be lossy if needed since the return value is
    just for display.

    We assume the data is in the locale preferred encoding. If it won't
    decode properly, we warn the user but decode as best we can.

    We also ensure that the output can be safely written to standard output
    without encoding errors.
    �ascii�utf-8NzBytes objectz&{} does not appear to be encoded as %s)�errors�
__stderr__�encodingr*)�
isinstancer�localeZgetpreferredencoding�codecs�lookup�name�decode�UnicodeDecodeError�format�loggerZwarningr)�getattr�sys�encode)�data�descr/Zdecoded_dataZ
msg_formatZoutput_encodingZoutput_encodedrrr�str_to_displayYs0

��
r>cCst|dd�S)z<Return a string, safe for output, of subprocess output.
    zSubprocess output)r=)r>)r<rrrr�sFcCst|t�r|�d�S|S)Nr,)r0rr;��s�replacerrrr�s

cCs"t|t�r|�d|rdnd�S|S)Nr,rA�strict)r0�bytesr5r?rrrr�s
cCs`ttd�r6t�|tjtjB�}t�|�j}t�|�n&tj�	|�sPt�
|�j}ntd|��|S)a)
    Return path's uid.

    Does not follow symlinks:
        https://github.com/pypa/pip/pull/935#discussion_r5307003

    Placed this function in compat due to differences on AIX and
    Jython, that should eventually go away.

    :raises OSError: When path is a symlink or can't be read.
    �
O_NOFOLLOWz1%s is a symlink; Will not return uid for symlinks)�hasattr�os�open�O_RDONLYrD�fstat�st_uid�close�path�islink�stat�OSError)rL�fdZfile_uidrrrr�s
���get_suffixescCsdd�t�D�S)NcSsg|]}|d�qS)rr)r�suffixrrr�
<listcomp>�sz*get_extension_suffixes.<locals>.<listcomp>rQrrrrr�s��EXTENSION_SUFFIXEScCstSrrUrrrrr�scCs0tj�|�}|�d�r,|�d�r,|dd�}|S)zm
    Expand ~ and ~user constructions.

    Includes a workaround for https://bugs.python.org/issue14768
    z~/z//�N)rFrL�
expanduser�
startswith)rLZexpandedrrrrX�srX�pythonZwsgiref�argparse�winZcli�ntcCsNttjd�rtj�||�Stj�tj�|��}tj�tj�|��}||kSdS)z>Provide an alternative for os.path.samefile on Windows/Python2rN)rErFrLr�normcase�abspath)Zfile1Zfile2Zpath1Zpath2rrrr�s
cCstt���S)��
        Returns a tuple (x, y) representing the width(x) and the height(y)
        in characters of the terminal window.
        )�tuple�shutilrrrrrrscCs�dd�}|d�p|d�p|d�}|sbz(t�t��tj�}||�}t�|�Wntk
r`YnX|s�tj�dd�tj�dd	�f}t|d�t|d�fS)
r`cSs\z4ddl}ddl}ddl}|�d|�||jd��}Wntk
rJYdSX|dkrXdS|S)NrZhhZ12345678)rr)�fcntl�termios�struct�unpack_fromZioctlZ
TIOCGWINSZ�	Exception)rPrcrdre�crrrr�ioctl_GWINSZs�z'get_terminal_size.<locals>.ioctl_GWINSZrrW�ZLINES�ZCOLUMNS�P)	rFrG�ctermidrHrKrg�environ�get�int)rirhrPrrrrs)N)F)F)>�__doc__Z
__future__rrr2r1ZloggingrFrbr:Zpip._vendor.sixrrZpip._vendor.urllib3.utilrZpip._internal.utils.typingr�typingrr	r
rZ_ssl�ImportErrorZsslrZpip._vendorZipaddrZ	IPAddressZ
ip_addressZ	IPNetworkZ
ip_network�__all__Z	getLogger�__name__r8ZHAS_TLSZimpr�AttributeErrorr
�importlib.utilr(�register_errorr)r>rrrrRrZimportlib.machineryrVrXr�platformrYr4rrrErrrrr�<module>s�
�



�
B


�



Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Mar 2024 10.19 AM
root / root
0755
__init__.cpython-38.opt-1.pyc
0.151 KB
17 Oct 2023 6.30 PM
root / root
0644
__init__.cpython-38.pyc
0.151 KB
17 Oct 2023 6.30 PM
root / root
0644
appdirs.cpython-38.opt-1.pyc
7.854 KB
17 Oct 2023 6.30 PM
root / root
0644
appdirs.cpython-38.pyc
7.854 KB
17 Oct 2023 6.30 PM
root / root
0644
compat.cpython-38.opt-1.pyc
6.679 KB
17 Oct 2023 6.30 PM
root / root
0644
compat.cpython-38.pyc
6.679 KB
17 Oct 2023 6.30 PM
root / root
0644
deprecation.cpython-38.opt-1.pyc
2.76 KB
17 Oct 2023 6.30 PM
root / root
0644
deprecation.cpython-38.pyc
2.76 KB
17 Oct 2023 6.30 PM
root / root
0644
encoding.cpython-38.opt-1.pyc
1.218 KB
17 Oct 2023 6.30 PM
root / root
0644
encoding.cpython-38.pyc
1.218 KB
17 Oct 2023 6.30 PM
root / root
0644
filesystem.cpython-38.opt-1.pyc
2.708 KB
17 Oct 2023 6.30 PM
root / root
0644
filesystem.cpython-38.pyc
2.708 KB
17 Oct 2023 6.30 PM
root / root
0644
filetypes.cpython-38.opt-1.pyc
0.543 KB
17 Oct 2023 6.30 PM
root / root
0644
filetypes.cpython-38.pyc
0.543 KB
17 Oct 2023 6.30 PM
root / root
0644
glibc.cpython-38.opt-1.pyc
2.204 KB
17 Oct 2023 6.30 PM
root / root
0644
glibc.cpython-38.pyc
2.204 KB
17 Oct 2023 6.30 PM
root / root
0644
hashes.cpython-38.opt-1.pyc
4.047 KB
17 Oct 2023 6.30 PM
root / root
0644
hashes.cpython-38.pyc
4.047 KB
17 Oct 2023 6.30 PM
root / root
0644
inject_securetransport.cpython-38.opt-1.pyc
0.91 KB
17 Oct 2023 6.30 PM
root / root
0644
inject_securetransport.cpython-38.pyc
0.91 KB
17 Oct 2023 6.30 PM
root / root
0644
logging.cpython-38.opt-1.pyc
8.944 KB
17 Oct 2023 6.30 PM
root / root
0644
logging.cpython-38.pyc
8.944 KB
17 Oct 2023 6.30 PM
root / root
0644
marker_files.cpython-38.opt-1.pyc
0.906 KB
17 Oct 2023 6.30 PM
root / root
0644
marker_files.cpython-38.pyc
0.906 KB
17 Oct 2023 6.30 PM
root / root
0644
misc.cpython-38.opt-1.pyc
22.834 KB
17 Oct 2023 6.30 PM
root / root
0644
misc.cpython-38.pyc
22.834 KB
17 Oct 2023 6.30 PM
root / root
0644
models.cpython-38.opt-1.pyc
1.879 KB
17 Oct 2023 6.30 PM
root / root
0644
models.cpython-38.pyc
1.879 KB
17 Oct 2023 6.30 PM
root / root
0644
packaging.cpython-38.opt-1.pyc
2.547 KB
17 Oct 2023 6.30 PM
root / root
0644
packaging.cpython-38.pyc
2.547 KB
17 Oct 2023 6.30 PM
root / root
0644
setuptools_build.cpython-38.opt-1.pyc
1.229 KB
17 Oct 2023 6.30 PM
root / root
0644
setuptools_build.cpython-38.pyc
1.229 KB
17 Oct 2023 6.30 PM
root / root
0644
subprocess.cpython-38.opt-1.pyc
5.467 KB
17 Oct 2023 6.30 PM
root / root
0644
subprocess.cpython-38.pyc
5.467 KB
17 Oct 2023 6.30 PM
root / root
0644
temp_dir.cpython-38.opt-1.pyc
4.739 KB
17 Oct 2023 6.30 PM
root / root
0644
temp_dir.cpython-38.pyc
4.827 KB
17 Oct 2023 6.30 PM
root / root
0644
typing.cpython-38.opt-1.pyc
1.255 KB
17 Oct 2023 6.30 PM
root / root
0644
typing.cpython-38.pyc
1.255 KB
17 Oct 2023 6.30 PM
root / root
0644
ui.cpython-38.opt-1.pyc
11.479 KB
17 Oct 2023 6.30 PM
root / root
0644
ui.cpython-38.pyc
11.533 KB
17 Oct 2023 6.30 PM
root / root
0644
unpacking.cpython-38.opt-1.pyc
6.044 KB
17 Oct 2023 6.30 PM
root / root
0644
unpacking.cpython-38.pyc
6.044 KB
17 Oct 2023 6.30 PM
root / root
0644
urls.cpython-38.opt-1.pyc
1.318 KB
17 Oct 2023 6.30 PM
root / root
0644
urls.cpython-38.pyc
1.431 KB
17 Oct 2023 6.30 PM
root / root
0644
virtualenv.cpython-38.opt-1.pyc
0.857 KB
17 Oct 2023 6.30 PM
root / root
0644
virtualenv.cpython-38.pyc
0.857 KB
17 Oct 2023 6.30 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF