Merge pull request #1199 from dufferzafar/pathod-generator-hotfix

Handle the slice object case in TransformGenerator.__getitem__
This commit is contained in:
Thomas Kriechbaumer 2016-06-02 22:45:55 +02:00
commit b9ad7be5ac

View File

@ -37,6 +37,8 @@ class TransformGenerator(object):
def __getitem__(self, x):
d = self.gen.__getitem__(x)
if isinstance(x, slice):
return self.transform(x.start, d)
return self.transform(x, d)
def __repr__(self):