Current File : //lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.pyc |
�
r2Wc @ s* d d l m Z d e f d � � YZ d S( i����( t BytesIOt CallbackFileWrapperc B s5 e Z d Z d � Z d � Z d � Z d d � 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.
c C s"