
    y/Yh_	                     p   d Z ddlZddlZddlZddlZddlmZ g dZ ej                  e
      ZdefdZdedefdZej"                  d	k  rej$                  j&                  Zn	 dd
ededededee   f
dZh dZej,                  j/                  d      xs  ej,                  dk(  xr ej0                  dk(  Zy)zKStuff that differs in different Python versions and platform
distributions.    N)IO)get_path_uidstdlib_pkgsWINDOWSreturnc                  <    	 dd l } y# 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     [/var/www/html/profi_bot/bot/venv/lib/python3.12/site-packages/pip/_internal/utils/compat.pyhas_tlsr      s*      6s    	pathc                    t        t        d      rkt        j                  | t        j                  t        j                  z        }t        j
                  |      j                  }t        j                  |       |S t        j                  j                  |       s!t        j                  |       j                  }|S t        |  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)hasattrosopenO_RDONLYr   fstatst_uidcloser   islinkstatOSError)r   fdfile_uids      r   r   r      s     r< WWT2;;6788B<&&
 O ww~~d#wwt}++H O TF"QRSS    )      packageresourceencodingerrorsc                 j    t         j                  j                  |       |z  j                  d||      S )Nr)r#   r$   )	importlib	resourcesfilesr   )r!   r"   r#   r$   s       r   open_text_resourcer*   >   s:     ##))'2X=CC(6 D 
 	
r   >   pythonwsgirefargparsewinclint)zutf-8strict)__doc__importlib.resourcesr'   loggingr   systypingr   __all__	getLogger__name__loggerboolr   strintr   version_infor(   	open_textr*   r   platform
startswithnamer    r   r   <module>rD      s      	 
 
4 
		8	$
 
s s : g",,66 MU

 #
/2
FI
	C
 0 ,,
!
!%
(
WS\\U-B-VrwwRVr   