o
ai\ @ sz d Z ddlZddlZddlZg dZeeZdefddZ de
defdd Zh d
Z
ejdp:ejdko:ejd
kZdS )zKStuff that differs in different Python versions and platform
distributions. N)get_path_uidstdlib_pkgsWINDOWSreturnc C s2 zdd l } W dS ty Y nw ddlm} |S )Nr T)IS_PYOPENSSL)_sslImportErrorpip._vendor.urllib3.utilr )r r r
/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/utils/compat.pyhas_tls s r pathc C sb t tdrt| tjtjB }t|j}t| |S tj | s*t
| j}|S t| d)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_NOFOLLOWz/ is a symlink; Will not return uid for symlinks)hasattrosopenO_RDONLYr fstatst_uidcloser
islinkstatOSError)r
fdfile_uidr
r
r r s
r > wsgirefpythonargparsewinclint)__doc__loggingr sys__all__ getLogger__name__loggerboolr strintr r platform
startswithnamer r
r
r
r