
    Mh,                     n    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dS )	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                 f    t          t          |                               |           || _        d S N)superr   __init__value)selfr	   	__class__s     R/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pexpect/exceptions.pyr   zExceptionPexpect.__init__
   s-    %%..u555


    c                 *    t          | j                  S r   )strr	   )r
   s    r   __str__zExceptionPexpect.__str__   s    4:r   c                     t          j        t          j                    d                   }d |D             }t          j        |          }d                    |          S )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.    c                 :    g | ]}d |d         vrd|d         v|S )zpexpect/__init__r   zpexpect/expect ).0items     r   
<listcomp>z.ExceptionPexpect.get_trace.<locals>.<listcomp>   sB     R R R4.@Q.O.O0@Q0O0O 0O0O0Or    )	traceback
extract_tbsysexc_infoformat_listjoin)r
   tblists     r   	get_tracezExceptionPexpect.get_trace   sa    
 %clnnQ&788R R6 R R R&v..wwvr   )__name__
__module____qualname____doc__r   r   r    __classcell__)r   s   @r   r   r      s`               	 	 	 	 	 	 	r   r   c                       e Zd ZdZdS )EOFzRRaised when EOF is read from a child.
    This usually means the child has exited.Nr!   r"   r#   r$   r   r   r   r'   r'      s        0 0 0 0r   r'   c                       e Zd ZdZdS )TIMEOUTz-Raised when a read time exceeds the timeout. Nr(   r   r   r   r*   r*   "   s        7777r   r*   )r$   r   r   	Exceptionr   r'   r*   r   r   r   <module>r,      s    ' '     



    y   .0 0 0 0 0
 0 0 0
8 8 8 8 8 8 8 8 8 8r   