Skip to content

Commit

Permalink
[BUGFIX][Processing] Vector tools -- add next methods for features it…
Browse files Browse the repository at this point in the history
…erator
  • Loading branch information
rldhont committed Mar 15, 2017
1 parent 16f3282 commit 874c726
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/tools/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ def __len__(self):
else:
return int(self.layer.featureCount())

def next(self):
'''Iterator next method in python 2'''
return next(self.iter)

return Features(layer)


Expand Down

0 comments on commit 874c726

Please sign in to comment.