
    g              	          U d Z ddlZddlZddlZddlmZ ddlmZ 	 ddlZ	dZee   ed<   	 ddlZ e ee ej"                  dej$                        j'                                     Zedk  rdZ	 ej.                  dk\  sej0                  d	k\  rd
ej2                  ddfdZnd
ej2                  ddfdZddgZy# e
$ r 	 ddl	Z	n# e
$ r dZ	Y nw xY wY w xY w# ee
ef$ r dZY rw xY w)z
The _compat module is used for code which requires branching between different
Python environments. It is excluded from the code coverage checks.
    N)
ModuleType)Optionalzstdz^([0-9]+)\.([0-9]+))r      )   
   )   r	   r      contextreturnc                 B    t         j                  j                  | _        y N)ssl
TLSVersionTLSv1_2minimum_versionr   s    B/var/www/openai/venv/lib/python3.12/site-packages/httpx/_compat.pyset_minimum_tls_version_1_2r   +   s     #&.."8"8    c                    | xj                   t        j                  z  c_         | xj                   t        j                  z  c_         | xj                   t        j                  z  c_         | xj                   t        j
                  z  c_         y r   )optionsr   OP_NO_SSLv2OP_NO_SSLv3OP_NO_TLSv1OP_NO_TLSv1_1r   s    r   r   r   6   sN     	3??*3??*3??*3,,,r   brotlir   )__doc__rer   systypesr   typingr   
brotlicffir   ImportErrorr   __annotations__	zstandardtuplemapintsearch__version__groups_zstd_versionAttributeError
ValueErrorversion_infoOPENSSL_VERSION_INFO
SSLContextr   __all__ r   r   <module>r5      s   
 
 
 
  
 "hz ! C143C3CDKKMNM w w#":":l"J9S^^ 9 9-S^^ - - 2
3]    	Z0 DsF   B8 C 8C>CCC
CCCC
C#"C#