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[assignment] except ImportError: # pragma: no cover from ._quoting_py import _Quoter, _Unquoter # type: ignore[assignment] else: from ._quoting_py import _Quoter, _Unquoter # type: ignore[assignment]
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 154 B | 0644 |
|
__init__.pyi | File | 3.84 KB | 0644 |
|
_quoting.py | File | 537 B | 0644 |
|
_quoting_c.cpython-311-x86_64-linux-gnu.so | File | 896.7 KB | 0755 |
|
_quoting_c.pyi | File | 447 B | 0644 |
|
_quoting_c.pyx | File | 11.23 KB | 0644 |
|
_quoting_py.py | File | 6.22 KB | 0644 |
|
_url.py | File | 37.05 KB | 0644 |
|
py.typed | File | 14 B | 0644 |
|