U
    ‚wr[.  ã                   @   s¾   d Z ddlZe d¡ZzddlmZ W n& ek
rL   G dd„ dejƒZY nX e eƒ ¡ dadd	d
dddddgZ	e 
¡ fdd„Zdd	„ Zdd
„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ ZdS )aL  
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

é    NZ	websocket)ÚNullHandlerc                   @   s   e Zd Zdd„ ZdS )r   c                 C   s   d S ©N© )ÚselfÚrecordr   r   ú4/usr/lib/python3/dist-packages/websocket/_logging.pyÚemit   s    zNullHandler.emitN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s   r   FÚenableTraceÚdumpÚerrorÚwarningÚdebugÚtraceÚisEnabledForErrorÚisEnabledForDebugc                 C   s"   | a | rt |¡ t tj¡ dS )zl
    turn on/off the traceability.

    traceable: boolean value. if set True, traceability is enabled.
    N)Ú_traceEnabledÚ_loggerÚ
addHandlerZsetLevelÚloggingÚDEBUG)Z	traceableZhandlerr   r   r   r   (   s    
c                 C   s.   t r*t d|  d ¡ t |¡ t d¡ d S )Nz--- z ---z-----------------------©r   r   r   )ÚtitleÚmessager   r   r   r   5   s    
c                 C   s   t  | ¡ d S r   )r   r   ©Úmsgr   r   r   r   <   s    c                 C   s   t  | ¡ d S r   )r   r   r   r   r   r   r   @   s    c                 C   s   t  | ¡ d S r   )r   r   r   r   r   r   r   D   s    c                 C   s   t rt | ¡ d S r   r   r   r   r   r   r   H   s    c                   C   s   t  tj¡S r   )r   ÚisEnabledForr   ZERRORr   r   r   r   r   M   s    c                   C   s   t  tj¡S r   )r   r   r   r   r   r   r   r   r   Q   s    )Ú__doc__r   Z	getLoggerr   r   ÚImportErrorZHandlerr   r   Ú__all__ZStreamHandlerr   r   r   r   r   r   r   r   r   r   r   r   Ú<module>   s(   
 ÿ