Hacked By AnonymousFox
3
�U�f�% � @ s& d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dlm Z y(d dl
Z
d dl
mZmZm
Z
d dlZW n< ek
r� d dljZ
d dlmZmZm
Z
d dljZY nX 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�stj| j�| _| jj|||||� d S )N)�
isinstance�fpr ZNonBlockingFile�set_callback)�self�rs�ws�ex� user_data�callback� r �!/usr/lib/python3.6/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� ntjj| ||� 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"