%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/conch/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/conch/__pycache__/manhole_ssh.cpython-312.pyc |
� Ϫ�fK � �V � d Z ddlmZ ddlmZ ddlmZmZm Z ddlmZ ddl mZmZ ddlmZ G d� d � Z G d � d� Z ee j( � G d� d ej* � � Z G d� dej. ej* � Z G d� d� Z G d� dej4 � Zy)z9 insults/SSH integration support. @author: Jp Calderone � )�Dict)�implementer)�avatar�error� interfaces)�insults)�factory�session)� componentsc � � e Zd ZdZd� Zd� Zy)�_Gluez� A feeble class for making one attribute look like another. This should be replaced with a real class at some point, probably. Try not to write new code that uses it. c �: � | j j |� y �N)�__dict__�update)�self�kws �;/usr/lib/python3/dist-packages/twisted/conch/manhole_ssh.py�__init__z_Glue.__init__ s � �� � ���R� � c �0 � t | j d|� �)Nzhas no attribute)�AttributeError�name)r r s r �__getattr__z_Glue.__getattr__ s � ��T�Y�Y�(:�D�A�Ar N)�__name__� __module__�__qualname__�__doc__r r � r r r r s � ��!�Br r c � � e Zd Zd� Zy)�TerminalSessionTransportc � � ��� |� _ �� _ |� _ � j j �� j j t � j j ��fd�d�� � � fd�}� j j t � j j |d�� � � j j j ||� y )Nc �: �� � j j �� S r )�conn� sendClose)r �protoSessions ��r �<lambda>z3TerminalSessionTransport.__init__.<locals>.<lambda>/ s �� �v�{�{�'<�'<�\�'J� r zSSH Proto Transport)�write�loseConnectionr c �: �� � j j � y r )�protor) �r s �r r) z9TerminalSessionTransport.__init__.<locals>.loseConnection4 s �� ��J�J�%�%�'r zChained Proto Transport) r+ r �chainedProtocolr �makeConnectionr �dataReceivedr( �terminalProtocol�terminalSize)r r+ r- r �width�heightr) r&