use uvloop if available

This commit is contained in:
Alexander Bersenev committed 2018-06-22 15:26:33 +05:00
1 parent 51c40903ab
commit d56c995ee2
1 file changed
+5
+5
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