
    5>qj)
                        d Z ddl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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ej&                  d
k\  rddlZnddlmZ ej4                  j7                  d      xs  ej4                  dk(  xr ej8                  dk(  Zy)zKStuff that differs in different Python versions and platform
distributions.    N)IO)get_locale_encodingget_path_uidtomllib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     Y/opt/rentech/trading_bot/.venv/lib/python3.12/site-packages/pip/_internal/utils/compat.pyhas_tlsr      s*      6s    	c                  z    t         j                  dk\  rt        j                         S t        j                  d      S )zReturn the locale encoding.

    Uses ``locale.getencoding()`` when available (Python 3.11+) to avoid the
    ``EncodingWarning`` that ``locale.getpreferredencoding(False)`` raises
    under UTF-8 Mode.
          F)sysversion_infolocalegetencodinggetpreferredencoding     r   r   r      s2     7"!!##&&u--r   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Sr   r   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_resourcer3   L   s:     ##))'2X=CC(6 D 
 	
r   )tomliwinclint)zutf-8strict)__doc__importlib.resourcesr0   r   loggingr   r   typingr   __all__	getLogger__name__loggerboolr   strr   intr   r   r1   	open_textr3   r   pip._vendorr4   platform
startswithnamer   r   r   r   <module>rI      s      	 
 
G 
		8	$
 

.S 
.s s : g",,66 MU

 #
/2
FI
	C
 w, ,,
!
!%
(
WS\\U-B-VrwwRVr   