Your IP : 18.191.192.113


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.pyc

�
�Rec@s*ddlmZdefd��YZdS(i����(tBytesIOtCallbackFileWrappercBsGeZdZd�Zd�Zd�Zd�Zdd�Zd�Z	RS(sv
    Small wrapper around a fp object which will tee everything read into a
    buffer, and when that file is closed it will execute a callback with the
    contents of that buffer.

    All attributes are proxied to the underlying file object.

    This class uses members with a double underscore (__) leading prefix so as
    not to accidentally shadow an attribute.
    cCs"t�|_||_||_dS(N(Rt_CallbackFileWrapper__buft_CallbackFileWrapper__fpt_CallbackFileWrapper__callback(tselftfptcallback((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.pyt__init__s	cCs|jd�}t||�S(NR(t__getattribute__tgetattr(RtnameR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.pyt__getattr__s	cCsNy|jjdkSWntk
r'nXy|jjSWntk
rInXtS(N(RRtNonetAttributeErrortclosedtFalse(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.pyt__is_fp_closed!s

cCs/|jr"|j|jj��nd|_dS(N(RRtgetvalueR
(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.pyt_close2s	cCs?|jj|�}|jj|�|j�r;|j�n|S(N(RtreadRtwritet"_CallbackFileWrapper__is_fp_closedR(Rtamttdata((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.pyR=s

cCs[|jj|�}|dkr.|dkr.|S|jj|�|j�rW|j�n|S(Nis
(Rt
_safe_readRRRR(RRR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.pyREs
N(
t__name__t
__module__t__doc__RRRRR
RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.pyRs
				N(tioRtobjectR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.pyt<module>s

?>