Skip to content

Commit eb22319

Browse files
committed
[BUGFIX][Processing] Vector tools -- add next methods for features iterator
1 parent f18b898 commit eb22319

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/plugins/processing/tools/vector.py

+4
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ def filterFeature(f, ignoreInvalid):
130130
def __iter__(self):
131131
return self.iter
132132

133+
def __next__(self):
134+
'''Iterator next method in python 3'''
135+
return next(self.iter)
136+
133137
def __len__(self):
134138
if self.selection:
135139
return int(self.layer.selectedFeatureCount())

0 commit comments

Comments
 (0)