From 4d324abbb5d11040028ef6aa62572b52e1e39a38 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 15 Jul 2019 00:54:35 +0200 Subject: [PATCH] Don't automatically install uvloop. Let people do that People are reporting uvloop would crash with weird core-dumped errors when using other asyncio libs, such as aiohttp. Plus, this was a bad idea and people should install uvloop themselves before running their codes. --- pyrogram/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index 7b4ece92..407bbcff 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -28,13 +28,6 @@ __version__ = "0.16.0.asyncio-dev" __license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)" __copyright__ = "Copyright (C) 2017-2019 Dan " -try: - import uvloop -except ImportError: - pass -else: - uvloop.install() - from .errors import RPCError from .client import * from .client.handlers import *