diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-09-27 17:01:00 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-09-27 18:32:14 +0200 |
commit | ba8959ad7c18ce4165d29b7a472d845bd96f4735 (patch) | |
tree | 70da2e25a94588348fd5e66890a4a9fceb9e1ff2 /searx/utils.py | |
parent | 94c4cc126b16d4cd1653c410df63af4bc0a4e998 (diff) | |
download | searxng-ba8959ad7c18ce4165d29b7a472d845bd96f4735.tar.gz searxng-ba8959ad7c18ce4165d29b7a472d845bd96f4735.zip |
[fix] typos / reported by @kianmeng in searx PR-3366
[PR-3366] https://github.com/searx/searx/pull/3366
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/utils.py')
-rw-r--r-- | searx/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/utils.py b/searx/utils.py index 4910b1b85..effb9139a 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -273,7 +273,7 @@ def extract_url(xpath_results, base_url) -> str: raise ValueError('URL not found') -def dict_subset(dictionnary: MutableMapping, properties: Set[str]) -> Dict: +def dict_subset(dictionary: MutableMapping, properties: Set[str]) -> Dict: """Extract a subset of a dict Examples: @@ -282,7 +282,7 @@ def dict_subset(dictionnary: MutableMapping, properties: Set[str]) -> Dict: >>> >> dict_subset({'A': 'a', 'B': 'b', 'C': 'c'}, ['A', 'D']) {'A': 'a'} """ - return {k: dictionnary[k] for k in properties if k in dictionnary} + return {k: dictionary[k] for k in properties if k in dictionary} def get_torrent_size(filesize: str, filesize_multiplier: str) -> Optional[int]: |