Skip to content

Commit 0d0a10f

Browse files
committed
Fix for updated ruff PLR1714 rule
1 parent 17c8ec8 commit 0d0a10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zimscraperlib/i18n.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def get_language_details(
169169
adjusted_query = query
170170
native_query = query
171171
query_type = "purecode"
172-
elif all(x.isalpha() or x == "-" or x == "_" for x in query) and (
172+
elif all(x.isalpha() or x in ("-", "_") for x in query) and (
173173
query.count("_") + query.count("-") == 1
174174
):
175175
# possibility of locale

0 commit comments

Comments
 (0)