3 ig\@s|dZddlZddlZddlZdddgZejeZedddZ e e d d dZ d d d hZ ejjdpvejdkovejdkZdS)zKStuff that differs in different Python versions and platform distributions.N get_path_uid stdlib_pkgsWINDOWS)returnc Cs2y ddl}dStk r YnXddlm}|S)NrT) IS_PYOPENSSL)_ssl ImportErrorZpip._vendor.urllib3.utilr)rrr 9/tmp/pip-build-88gy_88q/pip/pip/_internal/utils/compat.pyhas_tlss r )pathrcCsbttdr6tj|tjtjB}tj|j}tj|n(tjj |sPtj |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_RDONLYr fstatst_uidcloser islinkstatOSError)r fdfile_uidr r r rs    pythonwsgirefargparsewinclint)__doc__loggingrsys__all__ getLogger__name__loggerboolr strintrrplatform startswithnamerr r r r s