ó
î Xc           @   s   d  d d „  ƒ  YZ  d S(   t   Iteratorc           B   s    e  Z d  Z d „  Z d „  Z RS(   s-  
    This class implements an iterator object that can be used to loop
    over an image sequence.

    You can use the ``[]`` operator to access elements by index. This operator
    will raise an :py:exc:`IndexError` if you try to access a nonexistent
    frame.

    :param im: An image object.
    c         C   s+   t  | d ƒ s t d ƒ ‚ n  | |  _ d  S(   Nt   seeks   im must have seek method(   t   hasattrt   AttributeErrort   im(   t   selfR   (    (    s5   /usr/lib/python2.7/dist-packages/PIL/ImageSequence.pyt   __init__   s    c         C   sB   y$ | r |  j  j | ƒ n  |  j  SWn t k
 r= t ‚ n Xd  S(   N(   R   R   t   EOFErrort
   IndexError(   R   t   ix(    (    s5   /usr/lib/python2.7/dist-packages/PIL/ImageSequence.pyt   __getitem__$   s    (   t   __name__t
   __module__t   __doc__R   R
   (    (    (    s5   /usr/lib/python2.7/dist-packages/PIL/ImageSequence.pyR       s   
	N(    (   R    (    (    (    s5   /usr/lib/python2.7/dist-packages/PIL/ImageSequence.pyt   <module>   s    