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

10 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2023-12-08 06:40 +0000

1import os 

2import platform 

3 

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

5 

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

7 

8USE_EXTENSIONS = not NO_EXTENSIONS and not PYPY 

9 

10if USE_EXTENSIONS: 

11 try: 

12 from . import _multidict # noqa 

13 except ImportError: 

14 USE_EXTENSIONS = False