%PDF- %PDF-
| Direktori : /usr/lib/python3/dist-packages/paramiko/__pycache__/ |
| Current File : //usr/lib/python3/dist-packages/paramiko/__pycache__/channel.cpython-312.pyc |
�
�ec�� � �. � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZmZm
Z
mZmZmZmZmZmZmZ ddlmZ ddlmZ ddlmZ dd lmZ dd
lmZmZ ddlm Z ddl!m"Z" d
� Z# G d� de"� Z$ G d� de� Z% G d� de%� Z& G d� de%� Z'y)z"
Abstraction for an SSH2 channel.
� N��wraps)�util)
�cMSG_CHANNEL_REQUEST�cMSG_CHANNEL_WINDOW_ADJUST�cMSG_CHANNEL_DATA�cMSG_CHANNEL_EXTENDED_DATA�DEBUG�ERROR�cMSG_CHANNEL_SUCCESS�cMSG_CHANNEL_FAILURE�cMSG_CHANNEL_EOF�cMSG_CHANNEL_CLOSE)�Message)�bytes_types)�SSHException)�BufferedFile)�BufferedPipe�PipeTimeout)�pipe)�ClosingContextManagerc �. � � t � � � fd�� }|S )z�
Decorator for `.Channel` methods which performs an openness check.
:raises:
`.SSHException` -- If the wrapped method is called on an unopened
`.Channel`.
c � �� | j s$| j s| j s| j st d� � �| g|��i |��S )NzChannel is not open)�closed�eof_received�eof_sent�activer )�self�args�kwds�funcs ��2/usr/lib/python3/dist-packages/paramiko/channel.py�_checkzopen_only.<locals>._check? sD �� �
�K�K�� � ��}�}��;�;��4�5�5��D�(�4�(�4�(�(� r )r! r# s ` r"