$97 GRAYBYTE WORDPRESS FILE MANAGER $83

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

/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/

HOME
Current File : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils//compat.pyc
�
�Rec@`s�dZddlmZmZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZm
Z
ddlmZer�ddlmZmZmZmZmZmZmZed�Zdefd	��YZnyddlZWn]ek
rdydd
lmZWqeek
r`ddlZeje_ej e_!qeXnXddd
dddddgZ"ej#e$�Z%er�ddl&Z&y
e&j'Z'Wne(k
r�dZ'nXe'dk	Z*ne+Z*ddl,m'Z'erd�Z-ej.de-�dZ/ndZ/d�Z0dd�Z1d�Z2d�Z3d�Z4dddhZ5e
j6j7d�p�e
j6d ko�ej8d!kZ9d"�Z:e;e	d�r�d#�Z<n	d$�Z<dd%�Z=e>ed&e=�Z?dS('sKStuff that differs in different Python versions and platform
distributions.i(tabsolute_importtdivisionN(tPY2t	text_type(tMYPY_CHECK_RUNNING(tCallabletOptionaltProtocoltTexttTupletTypeVartUniontFtLruCachecB`seZdd�ZRS(cC`s
t�dS(N(tNotImplementedError(tselftmaxsize((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pyt__call__sN(t__name__t
__module__tNoneR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pyR
s(t	ipaddressRtuses_pycachetconsole_to_strtget_path_uidtstdlib_pkgstWINDOWStsamefiletget_terminal_size(tcache_from_sourcec`sW�fd�t�j�j�D�}d�|D�}djtdj|���jfS(Nc3`s|]}�j|VqdS(N(tobject(t.0ti(terr(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pys	<genexpr>Iscs`s|]}t|�VqdS(N(tord(Rtb((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pys	<genexpr>Ksuu\x{:x}(trangetstarttendtjointmaptformat(R!t	raw_bytes((R!s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pytbackslashreplace_decode_fnHs%tbackslashreplace_decodetbackslashreplacecC`s<yddl}tSWntk
r'nXddlm}|S(Ni(tIS_PYOPENSSL(t_ssltTruetImportErrortpip._vendor.urllib3.utilR.(R/R.((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pythas_tlsVs
cC`s�t|t�r|Stj�}|s>tj|�jdkrGd}ny|j|�}Wn?tk
r�t	j
d|p|d|�|j|dt�}nXttt
dd	�dd	�}|r�|j|dd�}|j|�}n|S(
s�
    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.
    tasciisutf-8s&%s does not appear to be encoded as %ssBytes objectterrorst
__stderr__tencodingR-N(t
isinstanceRtlocaletgetpreferredencodingtcodecstlookuptnametdecodetUnicodeDecodeErrortloggertwarningR,tgetattrtsysRtencode(tdatatdescR7tdecoded_datatoutput_encodingtoutput_encoded((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pytstr_to_displaybs*	
		cC`st|dd�S(s<Return a string, safe for output, of subprocess output.
    RFsSubprocess output(RJ(RE((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pyR�scC`s�ttd�rMtj|tjtjB�}tj|�j}tj|�n<tjj	|�sttj
|�j}ntdj|���|S(s)
    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.
    t
O_NOFOLLOWs1{} is a symlink; Will not return uid for symlinks(
thasattrtostopentO_RDONLYRKtfstattst_uidtclosetpathtislinktstattOSErrorR)(RStfdtfile_uid((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pyR�s
cC`sAtjj|�}|jd�r=|jd�r=|d}n|S(sm
    Expand ~ and ~user constructions.

    Includes a workaround for https://bugs.python.org/issue14768
    s~/s//i(RMRSt
expandusert
startswith(RStexpanded((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pyRY�s
tpythontwsgireftargparsetwintclitntcC`sottjd�r%tjj||�Stjjtjj|��}tjjtjj|��}||kSdS(s>Provide an alternative for os.path.samefile on Windows/Python2RN(RLRMRSRtnormcasetabspath(tfile1tfile2tpath1tpath2((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pyR�s
cC`sttj��S(s�
        Returns a tuple (x, y) representing the width(x) and the height(y)
        in characters of the terminal window.
        (ttupletshutilR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pyR�scC`s�d�}|d�p*|d�p*|d�}|s�tjdkr�y8tjtj�tj�}||�}tj|�Wq�tk
r�q�Xq�n|s�tjj	dd�tjj	dd	�f}nt
|d�t
|d�fS(
s�
        Returns a tuple (x, y) representing the width(x) and the height(y)
        in characters of the terminal window.
        cS`suyLddl}ddl}ddl}|jd|j||jd��}Wntk
r`dSX|dkrqdS|S(Nithht12345678(ii(tfcntlttermioststructtunpack_fromtioctlt
TIOCGWINSZt	ExceptionR(RWRlRmRntcr((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pytioctl_GWINSZ�s
iiitwin32tLINESitCOLUMNSiP(RCtplatformRMRNtctermidRORRRrtenvirontgettint(RtRsRW((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pyR�s	$

-cC`s
d�}|S(NcS`s|S(N((tf((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pyt_wrappers((RR~((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pytnoop_lru_caches	t	lru_cache(@t__doc__t
__future__RRR;t	functoolsR9tloggingRMRiRCtpip._vendor.sixRRtpip._internal.utils.typingRttypingRRRRR	R
RRR
RR1tpip._vendortipaddrt	IPAddresst
ip_addresst	IPNetworkt
ip_networkt__all__t	getLoggerRR@timpRtAttributeErrorRRR0timportlib.utilR+tregister_errorR,R3RJRRRYRRxRZR=RRRLRRRBR�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/compat.pyt<module>sp4

	


			C					$


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.49 PM
root / linksafe
0755
__init__.py
0 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
__init__.pyc
0.221 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
appdirs.py
1.317 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
appdirs.pyc
2.016 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compat.py
9.267 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compat.pyc
9.653 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compatibility_tags.py
5.312 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compatibility_tags.pyc
4.909 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
datetime.py
0.288 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
datetime.pyc
0.731 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
deprecation.py
3.24 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
deprecation.pyc
3.805 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
direct_url_helpers.py
4.257 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
direct_url_helpers.pyc
3.61 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
distutils_args.py
1.318 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
distutils_args.pyc
1.726 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
encoding.py
1.254 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
encoding.pyc
1.731 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
entrypoints.py
1.19 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
entrypoints.pyc
1.589 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
filesystem.py
6.78 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
filesystem.pyc
8.431 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
filetypes.py
0.558 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
filetypes.pyc
0.834 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
glibc.py
3.22 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
glibc.pyc
2.493 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
hashes.py
4.568 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
hashes.pyc
6.646 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
inject_securetransport.py
0.791 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
inject_securetransport.pyc
1.189 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
logging.py
12.786 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
logging.pyc
13.289 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
misc.py
27.667 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
misc.pyc
37.103 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
models.py
1.173 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
models.pyc
3.218 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
packaging.py
2.964 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
packaging.pyc
3.572 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
parallel.py
3.324 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
parallel.pyc
3.921 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
pkg_resources.py
1.225 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
pkg_resources.pyc
2.939 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
setuptools_build.py
4.939 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
setuptools_build.pyc
4.254 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
subprocess.py
9.691 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
subprocess.pyc
7.313 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
temp_dir.py
8.182 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
temp_dir.pyc
9.96 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
typing.py
1.368 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
typing.pyc
1.644 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
unpacking.py
9.266 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
unpacking.pyc
8.435 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
urls.py
1.491 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
urls.pyc
2.187 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
virtualenv.py
3.619 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
virtualenv.pyc
4.597 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
wheel.py
7.132 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
wheel.pyc
7.997 KB
13 Nov 2023 9.11 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF