mirror of
https://github.com/ada-dmitry/kurator_bot.git
synced 2026-09-24 08:10:15 +00:00
init new bot
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
import os
|
||||
import platform
|
||||
|
||||
NO_EXTENSIONS = bool(os.environ.get("MULTIDICT_NO_EXTENSIONS"))
|
||||
|
||||
PYPY = platform.python_implementation() == "PyPy"
|
||||
|
||||
USE_EXTENSIONS = not NO_EXTENSIONS and not PYPY
|
||||
|
||||
if USE_EXTENSIONS:
|
||||
try:
|
||||
from . import _multidict # noqa
|
||||
except ImportError:
|
||||
USE_EXTENSIONS = False
|
||||
Reference in New Issue
Block a user