summaryrefslogtreecommitdiff
path: root/searx/webutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/webutils.py')
-rw-r--r--searx/webutils.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/searx/webutils.py b/searx/webutils.py
index 6e49e3830..2a2da3797 100644
--- a/searx/webutils.py
+++ b/searx/webutils.py
@@ -9,7 +9,6 @@ import csv
import hashlib
import hmac
import re
-import inspect
import itertools
import json
from datetime import datetime, timedelta
@@ -316,21 +315,6 @@ def searxng_l10n_timespan(dt: datetime) -> str: # pylint: disable=invalid-name
return format_date(dt)
-def is_flask_run_cmdline():
- """Check if the application was started using "flask run" command line
-
- Inspect the callstack.
- See https://github.com/pallets/flask/blob/master/src/flask/__main__.py
-
- Returns:
- bool: True if the application was started using "flask run".
- """
- frames = inspect.stack()
- if len(frames) < 2:
- return False
- return frames[-2].filename.endswith('flask/cli.py')
-
-
NO_SUBGROUPING = 'without further subgrouping'