�
��e, � �Z � d Z ddlZddlZ G d� de� Z G d� de� Z G d� de� Zy) z!Exception classes used by Pexpect� Nc �. � � e Zd ZdZ� fd�Zd� Zd� Z� xZS )�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 zExceptionPexpect.__init__
s �� �
���.�u�5���
� c �, � t | j � S r )�strr )r
s r �__str__zExceptionPexpect.__str__ s � ��4�:�:��r
c �� � t j t j � d � }|D �cg c] }d|d vs�d|d vr|�� }}t j |� }dj |� S c c}w )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. � zpexpect/__init__r zpexpect/expect� )� traceback�
extract_tb�sys�exc_info�format_list�join)r
�tblist�items r � get_tracezExceptionPexpect.get_trace sz � �
�%�%�c�l�l�n�Q�&7�8��#)� R�4�.@��Q��.O�0@��Q��0O� � R�� R��&�&�v�.���w�w�v����Rs
�A/�A/)�__name__�
__module__�__qualname__�__doc__r r r �
__classcell__)r s @r r r s �� ���� r
r c � � e Zd ZdZy)�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 Zd ZdZy)�TIMEOUTz-Raised when a read time exceeds the timeout. Nr$ r% r
r r' |