File: //usr/lib/python3/dist-packages/twisted/conch/__pycache__/manhole.cpython-310.pyc
o
�bD. � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl
mZ ddlm
Z
G dd � d �ZG d
d� dej�ZdZd
ZdZdZdZdZG dd� dej�ZG dd� d�Zdd� ZG dd� de�ZdS )aO
Line-input oriented interactive interpreter loop.
Provides classes for handling Python source input and arbitrary output
interactively from a Twisted application. Also included is syntax coloring
code with support for VT102 terminals, control code handling (^C, ^D, ^Q),
and reasonable handling of Deferreds.
@author: Jp Calderone
� N)�BytesIO)�recvline)�defer)�_get_async_param)�TokenPrinterc @ s8 e Zd ZdZdZdZdd� Zdd� Zdd � Zd
d� Z dS )
�FileWrapperz�
Minimal write-file-like object.
Writes are translated into addOutput calls on an object passed to
__init__. Newlines are also converted from network to local style.
r �normalc C s
|| _ d S �N)�o)�selfr
� r �7/usr/lib/python3/dist-packages/twisted/conch/manhole.py�__init__&