ó 9ÕÒTc@`s™dZddlmZmZddlZddlZddlZddlmZyddl m Z Wn!e k r‡ddl m Z nXyddlZWn!e k r»ddlmZnXddd d d d d dgZeedƒZejdkrd„Zed„Znd„Zed„Zd„Zd„ZddgZejd kreejdgƒnejjdƒp’ejdko’ejdkZdS(!sKStuff that differs in different Python versions and platform distributions.i(tabsolute_importtdivisionN(t text_type(t dictConfig(t ipaddresstlogging_dictConfigRt uses_pycachetconsole_to_strt native_strt get_path_uidt stdlib_pkgstWINDOWStcache_from_sourceicC`s9y|jtjjƒSWntk r4|jdƒSXdS(Ntutf_8(tdecodetsyst __stdout__tencodingtUnicodeDecodeError(ts((s9/usr/lib/python2.7/vendor-packages/pip/compat/__init__.pyR s cC`s/t|tƒr+|jd|r$dndƒS|S(Nsutf-8treplacetstrict(t isinstancetbytesR(RR((s9/usr/lib/python2.7/vendor-packages/pip/compat/__init__.pyR&scC`s|S(N((R((s9/usr/lib/python2.7/vendor-packages/pip/compat/__init__.pyR,scC`s t|tƒr|jdƒS|S(Nsutf-8(RRtencode(RR((s9/usr/lib/python2.7/vendor-packages/pip/compat/__init__.pyR/s cC`sHt|dƒr|jƒS|j|j|jddd}|dSdS(Nt total_secondsiii ii@Bi@B(thasattrRt microsecondstsecondstdays(ttdtval((s9/usr/lib/python2.7/vendor-packages/pip/compat/__init__.pyR6s #cC`sˆttdƒrMtj|tjtjBƒ}tj|ƒj}tj|ƒn7tjj |ƒsttj |ƒj}nt d|ƒ‚|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( RtostopentO_RDONLYR tfstattst_uidtclosetpathtislinktstattOSError(R'tfdtfile_uid((s9/usr/lib/python2.7/vendor-packages/pip/compat/__init__.pyR >s  tpythontwsgirefiitargparsetwintclitnt(i(ii(t__doc__t __future__RRR!timpRtpip._vendor.sixRtlogging.configRRt ImportErrortpip.compat.dictconfigRt pip._vendort__all__RRt version_infoRtFalseRRR R textendtplatformt startswithtnameR (((s9/usr/lib/python2.7/vendor-packages/pip/compat/__init__.pyts8           "