File: //lib/python3/dist-packages/pexpect/__pycache__/spawnbase.cpython-38.pyc
U
\�ZKR � @ s� d dl mZmZ d dlZd dlZd dlZd dlZd dlZddlm Z m
Z
mZ ddlm
Z
mZmZ ejd dkZerveneZG dd� de�ZG d d
� d
e�ZdS )� )�StringIO�BytesION� )�ExceptionPexpect�EOF�TIMEOUT)�Expecter�searcher_string�searcher_re� c @ s, e Zd ZdZeddd��Zed dd��ZdS )
�
_NullCoderzPass bytes through unchanged.Fc C s | S �N� ��b�finalr r �3/usr/lib/python3/dist-packages/pexpect/spawnbase.py�encode s z_NullCoder.encodec C s | S r
r r r r r �decode s z_NullCoder.decodeN)F)F)�__name__�
__module__�__qualname__�__doc__�staticmethodr r r r r r r
s
r c @ s� e Zd ZdZdZdZdZd5dd�Zd d
� Zdd� Z d
d� Z
dd� Zdd� Ze
ee�Zd6dd�Zdd� Zdd� Zd7dd�Zd8dd�Zd9dd �Zd:d!d"�Zd;d#d$�Zd<d%d&�Zd'd(� Zd=d)d*�Zd+d,� Zd-d.� Zd/d0� Zd1d2� Zd3d4� ZdS )>� SpawnBasez�A base class providing the backwards-compatible spawn API for Pexpect.
This should not be instantiated directly: use :class:`pexpect.spawn` or
:class:`pexpect.fdpexpect.fdspawn`.
NF� �� �strictc C s� t j| _t j| _t j| _d | _d| _d | _d | _d | _d | _ d| _
d | _d | _d | _
d| _|| _t| _|| _d | _d | _|| _|| _d| _d| _d| _d| _d| _dt| � d | _d| _|| _|| _ |d k�r:t!� | _"| _#t$| _%t&| _'d | _(t)�rt$t*f| _+t,j-�.d
�| _-dd� }|| _/nt0f| _+t,j-| _-t jj1| _/nbt2�3|�|�| _"t2�4|�|�| _#t5| _%t6| _'d
| _(t5f| _+t)�r�t,j-| _-nt,j-�7d
�| _-t jj1| _/d | _8| �'� | _9d S )NFT���g�������?g�������?g-C��6?�<�>s
�asciic S s>