Hacked By AnonymousFox
B
�A�[l � @ sp d Z ddlmZmZmZ ddlmZ G dd� de�ZG dd� de�ZG dd � d e�Z G d
d� de�Z
[[[[dS )
a Response classes used by urllib.
The base class, addbase, defines a minimal file-like interface,
including read() and readline(). The typical response object is an
addinfourl instance, which defines an info() method that returns
headers and a geturl() method that returns the url.
� )�absolute_import�division�unicode_literals)�objectc @ s@ e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dS )�addbasez(Base class for addinfo and addclosehook.c C sV || _ | j j| _| j j| _t| j d�r0| j j| _t| j d�rH| j j| _n
dd� | _d S )N� readlines�filenoc S s d S )N� r r r �Q/opt/alt/python37/lib/python3.7/site-packages/future/backports/urllib/response.py�<lambda> � z"addbase.__init__.<locals>.<lambda>)�fp�read�readline�hasattrr r )�selfr
r r r
�__init__ s
zaddbase.__init__c C s
t | j�S )N)�iterr
)r r r r
�__iter__ s zaddbase.__iter__c C s d| j jt| �| jf S )Nz<%s at %r whose fp = %r>)� __class__�__name__�idr
)r r r r
�__repr__% s zaddbase.__repr__c C s>