Server IP : 172.24.0.40 / Your IP : 216.73.216.10 Web Server : Apache System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64 User : apache ( 48) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.6/site-packages/pexpect/__pycache__/ |
Upload File : |
3 �Kp[, � @ sH d Z ddlZddlZG dd� de�ZG dd� de�ZG dd� de�ZdS ) z!Exception classes used by Pexpect� Nc s0 e Zd ZdZ� fdd�Zdd� Zdd� Z� ZS )�ExceptionPexpectz9Base class for all exceptions raised by this module. c s t t| �j|� || _d S )N)�superr �__init__�value)�selfr )� __class__� � /usr/lib/python3.6/exceptions.pyr s zExceptionPexpect.__init__c C s t | j�S )N)�strr )r r r r �__str__ s zExceptionPexpect.__str__c C s4 t jtj� d �}dd� |D �}t j|�}dj|�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 S s( g | ] }d |d krd|d kr|�qS )zpexpect/__init__r zpexpect/expectr )�.0�itemr r r � <listcomp> s z.ExceptionPexpect.get_trace.<locals>.<listcomp>� )� traceback� extract_tb�sys�exc_info�format_list�join)r Ztblistr r r � get_trace s zExceptionPexpect.get_trace)�__name__� __module__�__qualname__�__doc__r r r � __classcell__r r )r r r s r c @ s e Zd ZdZdS )�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 r c @ s e Zd ZdZdS )�TIMEOUTz-Raised when a read time exceeds the timeout. N)r r r r r r r r r "