文件操作 - exceptions.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/pexpect/__pycache__/exceptions.cpython-311.pyc
编辑文件内容
� ��!^, � �n � d Z ddlZddlZ G d� de� � Z G d� de� � Z G d� de� � ZdS ) 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 �f �� t t | � � � |� � || _ d S �N)�superr �__init__�value)�selfr � __class__s ��4/usr/lib/python3/dist-packages/pexpect/exceptions.pyr zExceptionPexpect.__init__ s- �� � ���%�%�.�.�u�5�5�5��� � � � c �* � t | j � � S r )�strr )r s r �__str__zExceptionPexpect.__str__ s � ��4�:���r c �� � t j t j � � d � � }d� |D � � }t j |� � }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. � c �: � g | ]}d |d vrd|d v�|��S )zpexpect/__init__r zpexpect/expect� )�.0�items r � <listcomp>z.ExceptionPexpect.get_trace.<locals>.<listcomp> sB � � R� R� R�4�.@��Q��.O�.O�0@��Q��0O�0O� �0O�0O�0Or � )� traceback� extract_tb�sys�exc_info�format_list�join)r �tblists r � get_tracezExceptionPexpect.get_trace sa � � �%�c�l�n�n�Q�&7�8�8��R� R�6� R� R� R���&�v�.�.���w�w�v���r )�__name__� __module__�__qualname__�__doc__r r r � __classcell__)r s @r r r s` �� � � � � �� �� � � � �� � � � � � � � � r r c � � e Zd ZdZdS )�EOFzRRaised when EOF is read from a child. This usually means the child has exited.N�r! r"