U 巀g_ @sdZddlZddlZddlZddlZddlmZdddgZe e Z e ddd Z eed d dZejd krvejjZndeeeeeedddZdddhZejdpejdkoejdkZdS)zKStuff that differs in different Python versions and platform distributions.N)IO get_path_uid stdlib_pkgsWINDOWS)returncCs4zddl}WdStk r"YnXddlm}|S)NrT) IS_PYOPENSSL)_ssl ImportErrorpip._vendor.urllib3.utilr)rrr H/opt/hc_python/lib/python3.8/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_uidcloserislinkstatOSError)rfdfile_uidr r r rs    ) utf-8strict)packageresourceencodingerrorsrcCstj||jd||dS)Nr)r"r#) importlib resourcesfilesr)r r!r"r#r r r open_text_resource>s r(pythonwsgirefargparsewinclint)rr)__doc__importlib.resourcesr%loggingrsystypingr__all__ getLogger__name__loggerboolr strintr version_infor& open_textr(rplatform startswithnamerr r r r s,