These two uses of filter() are then checked for truthiness, but on Python 3:
bool(filter(None, []))
True
So we need to stop depending on that. Fortunately it's easy to replace
the filter with an equivalent list comprehension.
| pulkit | |
| indygreg |
| hg-reviewers |
These two uses of filter() are then checked for truthiness, but on Python 3:
bool(filter(None, []))
True
So we need to stop depending on that. Fortunately it's easy to replace
the filter with an equivalent list comprehension.
| Lint Skipped |
| Unit Tests Skipped |