
    .                     P   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n)d
Z eed      rddlm	Z	 nddl
m	Z	 ej                  d       ej                  d       d	Zy# e$ r&  G d de      Z G d de      Z G d de      Zd
ZY yw xY w)aK  
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-1335  USA

)HAVE_SSLsslSSLErrorSSL_ERROR_WANT_READSSL_ERROR_WANT_WRITE    N)r   )r   )r   
SSLContextcheck_hostnameTFmatch_hostname)r
   HAVE_CONTEXT_CHECK_HOSTNAMEc                       e Zd Zy)r   N__name__
__module____qualname__     (lib/third_party/websocket/_ssl_compat.pyr   r   ,       r   r   c                       e Zd Zy)SSLWantReadErrorNr   r   r   r   r   r   /   r   r   r   c                       e Zd Zy)SSLWantWriteErrorNr   r   r   r   r   r   2   r   r   r   )__doc____all__r   r   r   r   hasattrr   r   r
   backports.ssl_match_hostnameappendr   ImportError	Exceptionr   r   r   r   r   <module>r       s   * Y'(sL!gcnn>N&O&*#&+#3()*C'(NN01H 9 9 I  Hs   A1A: :(B%$B%