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

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

10 statements  

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