Skip to content
Permalink
Browse files

[processing] fixed usage of filter function in vector.features

  • Loading branch information
volaya committed Jan 9, 2017
1 parent d35830b commit 1500eadd2ce50da52e5d37ab5fb6f518b3a53fea
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/tools/vector.py
@@ -126,9 +126,9 @@ def filterFeature(f, ignoreInvalid):
return True

if invalidFeaturesMethod == self.IGNORE:
self.iter = filter(filterFeature, self.iter, True)
self.iter = filter(lambda x: filterFeature(x, True), self.iter)
elif invalidFeaturesMethod == self.RAISE_EXCEPTION:
self.iter = filter(filterFeature, self.iter, False)
self.iter = filter(lambda x: filterFeature(x, False), self.iter)

def __iter__(self):
return self.iter

1 comment on commit 1500ead

@rldhont

This comment has been minimized.

Copy link
Contributor

@rldhont rldhont commented on 1500ead Jan 9, 2017

Build fail:

Traceback (most recent call last):
  File "/home/travis/build/qgis/QGIS/python/plugins/processing/tests/ToolsTest.py", line 110, in testFeatures
    self.fail()
AssertionError: None
Please sign in to comment.
You can’t perform that action at this time.