
    e,                     Z    d Z ddlZddlZ G d de      Z G d de      Z G d de      Zy)	z!Exception classes used by Pexpect    Nc                   .     e Zd ZdZ fdZd Zd Z xZS )ExceptionPexpectz9Base class for all exceptions raised by this module.
    c                 :    t         t        |   |       || _        y N)superr   __init__value)selfr	   	__class__s     4/usr/lib/python3/dist-packages/pexpect/exceptions.pyr   zExceptionPexpect.__init__
   s    .u5
    c                 ,    t        | j                        S r   )strr	   )r
   s    r   __str__zExceptionPexpect.__str__   s    4::r   c                     t        j                  t        j                         d         }|D cg c]  }d|d   vsd|d   vr| }}t        j                  |      }dj                  |      S c c}w )zThis returns an abbreviated stack trace with lines that only concern
        the caller. In other words, the stack trace inside the Pexpect module
        is not included.    zpexpect/__init__r   zpexpect/expect )	traceback
extract_tbsysexc_infoformat_listjoin)r
   tblistitems      r   	get_tracezExceptionPexpect.get_trace   sz    
 %%cllnQ&78#) R4.@Q.O0@Q0O  R R&&v.wwvRs
   A/A/)__name__
__module____qualname____doc__r   r   r   __classcell__)r   s   @r   r   r      s    	r   r   c                       e Zd ZdZy)EOFzRRaised when EOF is read from a child.
    This usually means the child has exited.Nr   r   r   r     r   r   r#   r#      s    0r   r#   c                       e Zd ZdZy)TIMEOUTz-Raised when a read time exceeds the timeout. Nr$   r%   r   r   r'   r'   "   s    7r   r'   )r    r   r   	Exceptionr   r#   r'   r%   r   r   <module>r)      s4    '  
y .0
 0
8 8r   