home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
-
- class Iterator:
-
- def __init__(self, im):
- if not hasattr(im, 'seek'):
- raise AttributeError('im must have seek method')
- hasattr(im, 'seek')
- self.im = im
-
-
- def __getitem__(self, ix):
-
- try:
- if ix:
- self.im.seek(ix)
-
- return self.im
- except EOFError:
- raise IndexError
-
-
-
-