|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/site-packages/paramiko/__pycache__/ |
U
P��gF� � @ s d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZmZm
Z
mZmZmZmZmZmZmZ ddlmZ ddlmZ ddlmZ dd lmZmZ dd
lmZ ddlm Z dd
� Z!G dd� de �Z"G dd� de�Z#G dd� de#�Z$G dd� de#�Z%dS )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)�SSHException)�BufferedFile)�BufferedPipe�PipeTimeout)�pipe)�ClosingContextManagerc s t � �� fdd��}|S )z�
Decorator for `.Channel` methods which performs an openness check.
:raises:
`.SSHException` -- If the wrapped method is called on an unopened
`.Channel`.
c s0 | j s| js| js| js td��� | f|�|�S )NzChannel is not open)�closed�eof_received�eof_sent�activer )�self�args�kwds��func� �=/opt/cppython/lib/python3.8/site-packages/paramiko/channel.py�_check= s ����zopen_only.<locals>._checkr )r r! r r r � open_only4 s
r"