관리-도구
편집 파일: response.cpython-35.opt-2.pyc
���]� � @ s} d d l Z d d d d g Z Gd d � d e j � Z Gd d � d e � Z Gd d � d e � Z Gd d � d e � Z d S) � N�addbase�addclosehook�addinfo� addinfourlc sF e Z d Z � f d d � Z d d � Z d d � Z d d � Z � S) r c s, t t | � j | d d d �| | _ d S)Nz<urllib response>�deleteF)�superr �__init__�fp)�selfr )� __class__� �-/opt/alt/python35/lib64/python3.5/response.pyr s zaddbase.__init__c C s d | j j t | � | j f S)Nz<%s at %r whose fp = %r>)r �__name__�id�file)r r r r �__repr__ s zaddbase.__repr__c C s | j j r t d � � | 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 �type�value� tracebackr r r �__exit__! s zaddbase.__exit__)r � __module__�__qualname__r r r r r r )r r r s c s4 e Z d Z � f d d � Z � f d d � Z � S)r c s, t t | � j | � | | _ | | _ d S)N)r r r � closehook�hookargs)r r r r )r r r r ( s zaddclosehook.__init__c sS z8 | j } | j } | r7 d | _ d | _ | | � Wd t t | � j � Xd S)N)r r r r r )r r r )r r r r - s zaddclosehook.close)r r r r r r r )r r r % s c s. e Z d Z � f d d � Z d d � Z � S)r c s# t t | � j | � | | _ d S)N)r r r �headers)r r r )r r r r <