diff --git a/python/plugins/processing/tools/vector.py b/python/plugins/processing/tools/vector.py index ce8f9161c06..a14c6da5ecf 100644 --- a/python/plugins/processing/tools/vector.py +++ b/python/plugins/processing/tools/vector.py @@ -130,6 +130,10 @@ def features(layer, request=QgsFeatureRequest()): 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())