Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/PIL/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/PIL/__pycache__/ImageSequence.cpython-35.pyc



�ʴW��@sGdd�de�ZdS)c@sReZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�Iteratora-
    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.
    cCs1t|d�std��||_d|_dS)N�seekzim must have seek method�)�hasattr�AttributeError�im�position)�selfr�r	�D/opt/alt/python35/lib64/python3.5/site-packages/PIL/ImageSequence.py�__init__s	zIterator.__init__cCs:y|jj|�|jSWntk
r5t�YnXdS)N)rr�EOFError�
IndexError)rZixr	r	r
�__getitem__%s

zIterator.__getitem__cCs|S)Nr	)rr	r	r
�__iter__,szIterator.__iter__cCsLy-|jj|j�|jd7_|jSWntk
rGt�YnXdS)N�)rrrr�
StopIteration)rr	r	r
�__next__/s
zIterator.__next__cCs
|j�S)N)r)rr	r	r
�next7sz
Iterator.nextN)	�__name__�
__module__�__qualname__�__doc__rrrrrr	r	r	r
rs
rN)�objectrr	r	r	r
�<module>s