SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] remove unused code / `_STORAGE_UNIT_VALUE`
Markus Heisere31b06b686a7
diff --git a/searx/utils.py b/searx/utils.pyindex 0c11ccc65..191161bde 100644--- a/searx/utils.py+++ b/searx/utils.py@@ -44,16 +44,6 @@ _JS_QUOTE_KEYS_RE = re.compile(r'([\{\s,])(\w+)(:)')_JS_VOID_RE = re.compile(r'void\s+[0-9]+|void\s*\([0-9]+\)')_JS_DECIMAL_RE = re.compile(r":\s*\.")-_STORAGE_UNIT_VALUE: Dict[str, int] = {- 'TB': 1024 * 1024 * 1024 * 1024,- 'GB': 1024 * 1024 * 1024,- 'MB': 1024 * 1024,- 'TiB': 1000 * 1000 * 1000 * 1000,- 'GiB': 1000 * 1000 * 1000,- 'MiB': 1000 * 1000,- 'KiB': 1000,-}-_XPATH_CACHE: Dict[str, XPath] = {}_LANG_TO_LC_CACHE: Dict[str, Dict[str, str]] = {}