Not sure about this - filter returns an iterator in Python 3. If it needs a lambda, the list comprehension is cleaner anyway:

`[p for p in path if p != self.tempdir.name]`