HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pexpect/__pycache__/exceptions.cpython-310.pyc
o

��!^,�@sHdZddlZddlZGdd�de�ZGdd�de�ZGdd�de�ZdS)	z!Exception classes used by Pexpect�Ncs0eZdZdZ�fdd�Zdd�Zdd�Z�ZS)�ExceptionPexpectz9Base class for all exceptions raised by this module.
    cstt|��|�||_dS�N)�superr�__init__�value)�selfr��	__class__��4/usr/lib/python3/dist-packages/pexpect/exceptions.pyr
s
zExceptionPexpect.__init__cCs
t|j�Sr)�strr)rr
r
r�__str__s
zExceptionPexpect.__str__cCs4t�t��d�}dd�|D�}t�|�}d�|�S)z�This 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. �cSs(g|]}d|dvrd|dvr|�qS)zpexpect/__init__rzpexpect/expectr
)�.0�itemr
r
r�
<listcomp>s�z.ExceptionPexpect.get_trace.<locals>.<listcomp>�)�	traceback�
extract_tb�sys�exc_info�format_list�join)r�tblistr
r
r�	get_traces

zExceptionPexpect.get_trace)�__name__�
__module__�__qualname__�__doc__rr
r�
__classcell__r
r
rrrs
rc@�eZdZdZdS)�EOFzRRaised when EOF is read from a child.
    This usually means the child has exited.N�rrrrr
r
r
rr!�r!c@r )�TIMEOUTz-Raised when a read time exceeds the timeout. Nr"r
r
r
rr$"r#r$)rrr�	Exceptionrr!r$r
r
r
r�<module>s