.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
compat.py
Go to the documentation of this file.
1
# SPDX-License-Identifier: AGPL-3.0-or-later
2
"""Compatibility with older versions"""
3
4
# pylint: disable=unused-import
5
6
__all__ = [
7
"tomllib"
,
8
]
9
10
import
sys
11
12
# TOML (lib) compatibility
13
# ------------------------
14
15
if
sys.version_info >= (3, 11):
16
import
tomllib
17
else
:
18
import
tomli
as
tomllib
searxng
searx
compat.py
Generated on Sat Nov 16 2024 00:10:57 for .oO SearXNG Developer Documentation Oo. by
1.12.0