This commit is contained in:
rzmk 2021-05-18 18:48:42 -04:00
parent f9a2e68c8b
commit 95d0201681
1552 changed files with 367539 additions and 2 deletions

18
env/Lib/site-packages/yarl/_quoting.py vendored Normal file
View file

@ -0,0 +1,18 @@
import os
import sys
__all__ = ("_Quoter", "_Unquoter")
NO_EXTENSIONS = bool(os.environ.get("YARL_NO_EXTENSIONS")) # type: bool
if sys.implementation.name != "cpython":
NO_EXTENSIONS = True
if not NO_EXTENSIONS: # pragma: no branch
try:
from ._quoting_c import _Quoter, _Unquoter # type: ignore[misc]
except ImportError: # pragma: no cover
from ._quoting_py import _Quoter, _Unquoter # type: ignore[misc]
else:
from ._quoting_py import _Quoter, _Unquoter # type: ignore[misc]