use uvloop if available

This commit is contained in:
Alexander Bersenev
2018-06-22 15:26:33 +05:00
parent 51c40903ab
commit d56c995ee2

View File

@@ -13,6 +13,11 @@ import sys
import re
import runpy
try:
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
except ImportError:
pass
try:
from Crypto.Cipher import AES