Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/yarl/_quoting.py: 80%
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 sys
4__all__ = ("_Quoter", "_Unquoter")
7NO_EXTENSIONS = bool(os.environ.get("YARL_NO_EXTENSIONS")) # type: bool
8if sys.implementation.name != "cpython":
9 NO_EXTENSIONS = True
12if not NO_EXTENSIONS: # pragma: no branch
13 try:
14 from ._quoting_c import _Quoter, _Unquoter
15 except ImportError: # pragma: no cover
16 from ._quoting_py import _Quoter, _Unquoter # type: ignore[assignment]
17else:
18 from ._quoting_py import _Quoter, _Unquoter # type: ignore[assignment]