Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/multidict/_compat.py: 89%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import os
2import platform
4NO_EXTENSIONS = bool(os.environ.get("MULTIDICT_NO_EXTENSIONS"))
6PYPY = platform.python_implementation() == "PyPy"
8USE_EXTENSIONS = not NO_EXTENSIONS and not PYPY
10if USE_EXTENSIONS:
11 try:
12 from . import _multidict # type: ignore[attr-defined] # noqa: F401
13 except ImportError: # pragma: no cover
14 # FIXME: Refactor for coverage. See #837.
15 USE_EXTENSIONS = False