Skip to content
Permalink
Browse files
[BUGFIX][Processing] Vector tools -- add next methods for features it…
…erator
  • Loading branch information
rldhont committed Mar 15, 2017
1 parent f18b898 commit eb2231925f813a7ea985f07eb1ecfa7e427713ef
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/plugins/processing/tools/vector.py
@@ -130,6 +130,10 @@ def filterFeature(f, ignoreInvalid):
def __iter__(self):
return self.iter

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

def __len__(self):
if self.selection:
return int(self.layer.selectedFeatureCount())

0 comments on commit eb22319

Please sign in to comment.