Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
WISEPLAT
GitHub Repository: WISEPLAT/python-code
Path: blob/master/ invest-robot-contest_TinkoffBotTwitch-main/venv/lib/python3.8/site-packages/multidict/_compat.py
12295 views
1
import os
2
import platform
3
4
NO_EXTENSIONS = bool(os.environ.get("MULTIDICT_NO_EXTENSIONS"))
5
6
PYPY = platform.python_implementation() == "PyPy"
7
8
USE_EXTENSIONS = not NO_EXTENSIONS and not PYPY
9
10
if USE_EXTENSIONS:
11
try:
12
from . import _multidict # noqa
13
except ImportError:
14
USE_EXTENSIONS = False
15
16