a Re\@sxdZddlZddlZddlZgdZeeZedddZ e e ddd Z hd Z ejd prejd korejd kZdS)zKStuff that differs in different Python versions and platform distributions.N) get_path_uid stdlib_pkgsWINDOWS)returncCs2zddl}WdSty Yn0ddlm}|S)NrT) IS_PYOPENSSL)_ssl ImportErrorpip._vendor.urllib3.utilr)rrr /builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_internal/utils/compat.pyhas_tlss  r )pathrcCsbttdr6t|tjtjB}t|j}t|n(tj |sPt |j}nt |d|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_NOFOLLOWz/ is a symlink; Will not return uid for symlinks) hasattrosopenO_RDONLYrfstatst_uidcloser islinkstatOSError)r fdfile_uidr r r rs    r>argparsewsgirefpythonwinclint)__doc__loggingrsys__all__ getLogger__name__loggerboolr strintrrplatform startswithnamerr r r r s