Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/multidict/_compat.py: 100%

10 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-07 06:52 +0000

1import os 

2import platform 

3 

4NO_EXTENSIONS = bool(os.environ.get("MULTIDICT_NO_EXTENSIONS")) 

5 

6PYPY = platform.python_implementation() == "PyPy" 

7 

8USE_CYTHON_EXTENSIONS = USE_CYTHON = not NO_EXTENSIONS and not PYPY 

9 

10if USE_CYTHON_EXTENSIONS: 

11 try: 

12 from . import _multidict # noqa 

13 except ImportError: 

14 USE_CYTHON_EXTENSIONS = USE_CYTHON = False