summaryrefslogtreecommitdiff
path: root/searx/compat.py
blob: 035726469b0471a1e27cf67422f16094bd5304d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SPDX-License-Identifier: AGPL-3.0-or-later
"""Compatibility with older versions"""

# pylint: disable=unused-import

__all__ = [
    "tomllib",
]

import sys

# TOML (lib) compatibility
# ------------------------

if sys.version_info >= (3, 11):
    import tomllib
else:
    import tomli as tomllib