Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
_compat.py16 linesDownload Raw Back to multidict
1import os2import platform3 4NO_EXTENSIONS = bool(os.environ.get("MULTIDICT_NO_EXTENSIONS"))5 6PYPY = platform.python_implementation() == "PyPy"7 8USE_EXTENSIONS = not NO_EXTENSIONS and not PYPY9 10if USE_EXTENSIONS:11    try:12        from . import _multidict  # type: ignore[attr-defined]  # noqa: F40113    except ImportError:  # pragma: no cover14        # FIXME: Refactor for coverage. See #837.15        USE_EXTENSIONS = False16 
codekingpro/portable-devtools · Team Ai