U e5d@sZddlZddddgZGdddejZGdddeZGdddeZGd ddeZdS) Naddbase addclosehookaddinfo addinfourlcs4eZdZfddZddZddZddZZS) rcs tt|j|ddd||_dS)NzF)delete)superr__init__fp)selfr  __class__'/usr/lib64/python3.8/urllib/response.pyrszaddbase.__init__cCsd|jjt||jfS)Nz<%s at %r whose fp = %r>)r __name__idfiler r r r__repr__szaddbase.__repr__cCs|jjrtd|S)NzI/O operation on closed file)r closed ValueErrorrr r r __enter__szaddbase.__enter__cCs |dSN)close)r typevalue tracebackr r r__exit__!szaddbase.__exit__)r __module__ __qualname__rrrr __classcell__r r r rrs cs(eZdZfddZfddZZS)rcs tt||||_||_dSr)rrr closehookhookargs)r r r r!r r rr(szaddclosehook.__init__c s>z(|j}|j}|r&d|_d|_||W5tt|XdSr)rrrr r!)r r r!r r rr-s zaddclosehook.close)rrrrrrr r r rr%s cs$eZdZfddZddZZS)rcstt||||_dSr)rrrheaders)r r r"r r rr<szaddinfo.__init__cCs|jSr)r"rr r rinfo@sz addinfo.info)rrrrr#rr r r rr9s cs.eZdZdfdd ZddZddZZS) rNcs"tt|||||_||_dSr)rrrurlcode)r r r"r$r%r r rrGszaddinfourl.__init__cCs|jSr)r%rr r rgetcodeLszaddinfourl.getcodecCs|jSr)r$rr r rgeturlOszaddinfourl.geturl)N)rrrrr&r'rr r r rrDs)Ztempfile__all__Z_TemporaryFileWrapperrrrrr r r r s