Allow to use RapidJSON. Allow to disable uvloop, ujson or rapidjson by env. variables.

This commit is contained in:
Alex Root Junior 2018-07-14 01:19:35 +03:00
parent 23211fc283
commit afbe7bb458
3 changed files with 45 additions and 17 deletions

View file

@ -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'