.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
10import sys
11
12# TOML (lib) compatibility
13# ------------------------
14
15if sys.version_info >= (3, 11):
16 import tomllib
17else:
18 import tomli as tomllib