
    e,                     Z    S r SSKrSSKr " S S\5      r " S S\5      r " S S\5      rg)	z!Exception classes used by Pexpect    Nc                   8   ^  \ rS rSrSrU 4S jrS rS rSrU =r	$ )ExceptionPexpect   z9Base class for all exceptions raised by this module.
    c                 8   > [         [        U ]  U5        Xl        g N)superr   __init__value)selfr
   	__class__s     4/usr/lib/python3/dist-packages/pexpect/exceptions.pyr	   ExceptionPexpect.__init__
   s    .u5
    c                 ,    [        U R                  5      $ r   )strr
   )r   s    r   __str__ExceptionPexpect.__str__   s    4::r   c                    [         R                  " [        R                  " 5       S   5      nU Vs/ s H  nSUS   ;  d  M  SUS   ;  d  M  UPM     nn[         R                  " U5      nSR                  U5      $ s  snf )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_traceExceptionPexpect.get_trace   sz    
 %%cllnQ&78#) R64.@Q.O$0@Q0O 6 R&&v.wwvRs   A<A<A<)r
   )
__name__
__module____qualname____firstlineno____doc__r	   r   r   __static_attributes____classcell__)r   s   @r   r   r      s    	 	r   r   c                       \ rS rSrSrSrg)EOF   zNRaised when EOF is read from a child.
This usually means the child has exited. Nr!   r"   r#   r$   r%   r&   r+   r   r   r)   r)      s    0r   r)   c                       \ rS rSrSrSrg)TIMEOUT"   z-Raised when a read time exceeds the timeout. r+   Nr,   r+   r   r   r.   r.   "   s    7r   r.   )r%   r   r   	Exceptionr   r)   r.   r+   r   r   <module>r1      s4    '  
y .0
 0
8 8r   