Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/future/backports/urllib/__pycache__/response.cpython-39.pyc
Ðазад
a h�hl � @ 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 ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/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 r )�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>