mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-15 20:02:22 +00:00
Allow to use RapidJSON. Allow to disable uvloop, ujson or rapidjson by env. variables.
This commit is contained in:
parent
23211fc283
commit
afbe7bb458
3 changed files with 45 additions and 17 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import asyncio
|
||||
import os
|
||||
|
||||
from .bot import Bot
|
||||
from .dispatcher import Dispatcher
|
||||
|
|
@ -8,7 +9,8 @@ try:
|
|||
except ImportError:
|
||||
uvloop = None
|
||||
else:
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
if 'DISABLE_UVLOOP' not in os.environ:
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
|
||||
__version__ = '2.0.dev1'
|
||||
__api_version__ = '3.6'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue