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.
| Automatic diff as part of commit; lint not applicable. |
| Automatic diff as part of commit; unit tests not applicable. |