Commit cea183c
committed
Fix check for .mo files in translation directories
In Python 2 the `filter()` worked because it returned a list, but in
Python 3 it's a generator which is never falsy.
That aside, using `any()` there is much cleaner (filter-with-lambda was
never pythonic anyway).1 parent 006c8ab commit cea183c
File tree
3 files changed
+4
-1
lines changed- flask_babel
- tests
- translations/fr/LC_MESSAGES
3 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
Whitespace-only changes.
0 commit comments