
    DQc                        d Z g dZ	 ddlZddlmZ ddlmZ ddlmZ  eed          r eej        d          rd	Zn0d
Z eed          rddlm	Z	 nddl
m	Z	 e                    d           e                    d           d	ZdS # e$ r3  G d de          Z G d de          Z G d de          Zd Zd
ZY dS w xY w)aH  
websocket - WebSocket client library for Python

Copyright (C) 2010 Hiroki Ohtani(liris)

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

)HAVE_SSLsslSSLErrorSSLWantReadErrorSSLWantWriteError    N)r   )r   )r   
SSLContextcheck_hostnameTFmatch_hostname)r
   HAVE_CONTEXT_CHECK_HOSTNAMEc                       e Zd ZdS )r   N__name__
__module____qualname__     5lib/python3.11/site-packages/websocket/_ssl_compat.pyr   r   *           r   r   c                       e Zd ZdS )r   Nr   r   r   r   r   r   -   r   r   r   c                       e Zd ZdS )r   Nr   r   r   r   r   r   0   r   r   r   c                      d S )Nr   r   r   r   <lambda>r   3   s    $ r   )__doc____all__r   r   r   r   hasattrr   r   r
   backports.ssl_match_hostnameappendr   ImportError	Exceptionr   r   r   <module>r       s   ( S
R
RJJJ$$$$$$%%%%%%wsL!! )ggcn>N&O&O )&*##&+#73()) 	D*******CCCCCC'(((NN0111HHH       9       9       I    ,CHHHHs   A=B 4B?>B?