Файловый менеджер - Редактировать - /usr/lib/python3.9/site-packages/rhn/__pycache__/connections.cpython-39.opt-1.pyc
Назад
a ꑐc�% � @ s( d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dlm Z z(d dl Z d dl mZmZm Z d dlZW n> ey� d dlmZ d dlmZmZm Z d dlmZ Y n0 G dd� de j�ZG d d � d e j�ZG dd� de�ZG d d� de�ZG dd� de�ZG dd� de�Zdd� Zdd� ZdS )� N)�python_version)�SSL)�nonblocking)�i18n)�_CS_REQ_SENT�_CS_IDLE�ResponseNotReadyc @ s e Zd Zdd� ZdS )�HTTPResponsec C s4 t | jtj�st�| j�| _| j�|||||� d S �N)� isinstance�fpr ZNonBlockingFile�set_callback��selfZrs�ws�exZ user_data�callback� r �3/usr/lib/python3.9/site-packages/rhn/connections.pyr s zHTTPResponse.set_callbackN)�__name__� __module__�__qualname__r r r r r r s r c @ s@ e Zd ZeZdejfdd�Zdd� Zdd� Z dd � Z d d� ZdS )�HTTPConnectionNc C s^ t � dkr tjj| |||d� ntj�| ||� g | _g | _g | _d | _d | _d| _ || _ d S )Nz2.6.1��timeoutz#rhn.connections $Revision$ (python))r �httplibr �__init__�_cb_rs�_cb_ws�_cb_ex� _cb_user_data�_cb_callback�_user_agentr )r �host�portr r r r r ( s zHTTPConnection.__init__c C s"