o Ec\@szdZddlZddlZddlZgdZeeZdefddZ de de fdd Z hd Z ejd p:ejd ko:ejd kZdS)zKStuff that differs in different Python versions and platform distributions.N) get_path_uid stdlib_pkgsWINDOWSreturncCs2zddl}WdStyYnwddlm}|S)NrT) IS_PYOPENSSL)_ssl ImportErrorZpip._vendor.urllib3.utilr)rrr M/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/utils/compat.pyhas_tlss  r pathcCsbttdrt|tjtjB}t|j}t||Stj |s*t |j}|St |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 fdZfile_uidr r r rs    r>ZpythonZwsgirefargparsewinZclint)__doc__Zloggingrsys__all__Z getLogger__name__Zloggerboolr strintrrplatform startswithnamerr r r r s   $