summaryrefslogtreecommitdiff
path: root/searx/utils.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2022-04-22 11:22:29 +0200
committerGitHub <noreply@github.com>2022-04-22 11:22:29 +0200
commit52e662baec70d9b3cc81e42bacaaf84e29b2be1f (patch)
tree7c0a9562b3c4edf18639fcfe2a0ee6229793cd35 /searx/utils.py
parent0e648bd2dab6fb5c58bdfffd6d0e9dcaae4b6801 (diff)
parentcf644b413e3c143330bd857648ff6811feb5f1d0 (diff)
Merge pull request #1133 from searxng/dependabot/pip/master/typing-extensions-4.2.0
Bump typing-extensions from 4.1.1 to 4.2.0
Diffstat (limited to 'searx/utils.py')
-rw-r--r--searx/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/utils.py b/searx/utils.py
index ffc9a39d6..abc330be2 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -372,7 +372,7 @@ def _get_lang_to_lc_dict(lang_list: List[str]) -> Dict[str, str]:
# babel's get_global contains all sorts of miscellaneous locale and territory related data
# see get_global in: https://github.com/python-babel/babel/blob/master/babel/core.py
-def _get_from_babel(lang_code: str, key: str):
+def _get_from_babel(lang_code: str, key):
match = get_global(key).get(lang_code.replace('-', '_'))
# for some keys, such as territory_aliases, match may be a list
if isinstance(match, str):