File "response.cpython-36.opt-1.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/lib64/python3.6/urllib/__pycache__/response.cpython-36.opt-1.pyc
File size: 3.15 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
3
\ @ s^ d Z ddlZddddgZG dd dejZG dd deZG d d deZG d
d deZdS )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.
Naddbaseaddclosehookaddinfo
addinfourlc s8 e Zd ZdZ fddZdd Zdd Zdd Z ZS )
r zOBase class for addinfo and addclosehook. Is a good idea for garbage collection.c s t t| j|ddd || _d S )Nz<urllib response>F)delete)superr __init__fp)selfr ) __class__ '/usr/lib64/python3.6/urllib/response.pyr s zaddbase.__init__c C s d| j jt| | jf S )Nz<%s at %r whose fp = %r>)r __name__idfile)r
r r r
__repr__ s zaddbase.__repr__c C s | j jrtd| S )NzI/O operation on closed file)r closed
ValueError)r
r r r
__enter__ s zaddbase.__enter__c C s | j d S )N)close)r
typevalue tracebackr r r
__exit__! s zaddbase.__exit__) r
__module____qualname____doc__r r r r
__classcell__r r )r r
r s
c s, e Zd ZdZ fddZ fddZ ZS )r z*Class to add a close hook to an open file.c s t t| j| || _|| _d S )N)r r r closehookhookargs)r
r r r )r r r
r ( s zaddclosehook.__init__c s>