AlkantarClanX12

Your IP : 3.147.68.39


Current Path : /proc/self/root/usr/lib/python2.7/site-packages/pip/compat/
Upload File :
Current File : //proc/self/root/usr/lib/python2.7/site-packages/pip/compat/__init__.pyo

�
��abc
@`s�dZddlmZmZddlZddlZddlmZyddlm	Z
Wn!ek
r{ddlm	Z
nXyddl
mZWn!ek
r�ddlmZnXyddlZWn]ek
r#yddlmZWq$ek
rddlZeje_eje_q$XnXyddlZd�ZWn*ek
ridd	lmZd
�ZnXddd
dddddddg
Zejd)kr�eZddlmZn3ddl Z e!e d�Zer�e jZndZejd*krd�Z#e$d�Z%nd�Z#e$d�Z%d�Z&d�Z'd�Z(d+Z)ejd,krbe)d-7Z)nej*j+d%�p�ej*d&ko�ej,d'kZ-d(�Z.dS(.sKStuff that differs in different Python versions and platform
distributions.i(tabsolute_importtdivisionN(t	text_type(t
dictConfig(tOrderedDict(t	ipaddresscC`s1tjd�tjd�g}ttt|��S(Ntstdlibt
platstdlib(t	sysconfigtget_pathtsettfiltertbool(tpaths((s7/usr/lib/python2.7/site-packages/pip/compat/__init__.pyt
get_stdlib"s(RcC`s=tjdt�tjdtdt�g}ttt|��S(Ntstandard_libt
plat_specific(Rtget_python_libtTrueR
RR(R
((s7/usr/lib/python2.7/site-packages/pip/compat/__init__.pyR+stlogging_dictConfigRtuses_pycachetconsole_to_strt
native_strtget_path_uidtstdlib_pkgstWINDOWStsamefileRii(tcache_from_sourceRcC`s9y|jtjj�SWntk
r4|jd�SXdS(Ntutf_8(tdecodetsyst
__stdout__tencodingtUnicodeDecodeError(ts((s7/usr/lib/python2.7/site-packages/pip/compat/__init__.pyRGs
cC`s/t|t�r+|jd|r$dnd�S|S(Nsutf-8treplacetstrict(t
isinstancetbytesR(R"R#((s7/usr/lib/python2.7/site-packages/pip/compat/__init__.pyRMscC`s|S(N((R"((s7/usr/lib/python2.7/site-packages/pip/compat/__init__.pyRSscC`s t|t�r|jd�S|S(Nsutf-8(R%Rtencode(R"R#((s7/usr/lib/python2.7/site-packages/pip/compat/__init__.pyRVs
cC`sHt|d�r|j�S|j|j|jddd}|dSdS(Nt
total_secondsiii
ii@Bi@B(thasattrR(tmicrosecondstsecondstdays(ttdtval((s7/usr/lib/python2.7/site-packages/pip/compat/__init__.pyR(]s
#cC`s�ttd�rMtj|tjtjB�}tj|�j}tj|�n7tjj	|�sttj
|�j}ntd|��|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%s is a symlink; Will not return uid for symlinks(R)tostopentO_RDONLYR/tfstattst_uidtclosetpathtislinktstattOSError(R6tfdtfile_uid((s7/usr/lib/python2.7/site-packages/pip/compat/__init__.pyRes
cC`sAtjj|�}|jd�r=|jd�r=|d}n|S(sl
    Expand ~ and ~user constructions.

    Includes a workaround for http://bugs.python.org/issue14768
    s~/s//i(R0R6t
expandusert
startswith(R6texpanded((s7/usr/lib/python2.7/site-packages/pip/compat/__init__.pyR<�s
tpythontwsgirefiitargparsetwintclitntcC`sottjd�r%tjj||�Stjjtjj|��}tjjtjj|��}||kSdS(s>Provide an alternative for os.path.samefile on Windows/Python2RN(R)R0R6Rtnormcasetabspath(tfile1tfile2tpath1tpath2((s7/usr/lib/python2.7/site-packages/pip/compat/__init__.pyR�s
(ii(i(R?R@(ii(RA(/t__doc__t
__future__RRR0Rtpip._vendor.sixRtlogging.configRRtImportErrortpip.compat.dictconfigtcollectionsRtpip._vendor.ordereddictRtpip._vendortipaddrt	IPAddresst
ip_addresst	IPNetworkt
ip_networkRRt	distutilst__all__tversion_infoRRtimportlib.utilRtimpR)tNoneRtFalseRR(RR<RtplatformR=tnameRR(((s7/usr/lib/python2.7/site-packages/pip/compat/__init__.pyt<module>sh