
    e\                         d Z ddlZddlZddlZg dZ ej        e          ZdefdZ	de
defdZh dZej                            d	          pej        d
k    o
ej        dk    ZdS )zKStuff that differs in different Python versions and platform
distributions.    N)get_path_uidstdlib_pkgsWINDOWSreturnc                  @    	 dd l } dS # t          $ r Y nw xY wddlm} |S )Nr   T)IS_PYOPENSSL)_sslImportErrorpip._vendor.urllib3.utilr   )r	   r   s     Q/var/www/html/api/venv/lib/python3.11/site-packages/pip/_internal/utils/compat.pyhas_tlsr      sO    t    655555s    
pathc                 z   t          t          d          rZt          j        | t          j        t          j        z            }t          j        |          j        }t          j        |           nKt          j        	                    |           st          j
        |           j        }nt          |  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)hasattrosopenO_RDONLYr   fstatst_uidcloser   islinkstatOSError)r   fdfile_uids      r   r   r      s     r<   TWT2;6778B<<&
 w~~d## 	Twt}}+HH TRRRSSSO    >   pythonwsgirefargparsewinclint)__doc__loggingr   sys__all__	getLogger__name__loggerboolr   strintr   r   platform
startswithnamer    r   r   <module>r2      s      				 




4
4
4 
	8	$	$
 
 
 
 
s s    @ 0// ,
!
!%
(
(
WS\U-B-VrwRVr   