ó
î Xc           @   s0   d  Z  d d l m Z d e f d „  ƒ  YZ d S(   s  
The **ImageFileIO** module can be used to read an image from a
socket, or any other stream device.

Deprecated. New code should use the :class:`PIL.ImageFile.Parser`
class in the :mod:`PIL.ImageFile` module instead.

.. seealso:: modules :class:`PIL.ImageFile.Parser`
iÿÿÿÿ(   t   BytesIOt   ImageFileIOc           B   s   e  Z d  „  Z RS(   c         C   s    | j  ƒ  } t j |  | ƒ d S(   sV  
        Adds buffering to a stream file object, in order to
        provide **seek** and **tell** methods required
        by the :func:`PIL.Image.Image.open` method. The stream object must
        implement **read** and **close** methods.

        :param fp: Stream file handle.

        .. seealso:: modules :func:`PIL.Image.open`
        N(   t   readR    t   __init__(   t   selft   fpt   data(    (    s3   /usr/lib/python2.7/dist-packages/PIL/ImageFileIO.pyR      s    (   t   __name__t
   __module__R   (    (    (    s3   /usr/lib/python2.7/dist-packages/PIL/ImageFileIO.pyR      s   N(   t   __doc__t   ioR    R   (    (    (    s3   /usr/lib/python2.7/dist-packages/PIL/ImageFileIO.pyt   <module>   s   