mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 14:25:55 +00:00
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.
This commit is contained in:
@@ -28,13 +28,6 @@ __version__ = "0.16.0.asyncio-dev"
|
|||||||
__license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)"
|
__license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)"
|
||||||
__copyright__ = "Copyright (C) 2017-2019 Dan <https://github.com/delivrance>"
|
__copyright__ = "Copyright (C) 2017-2019 Dan <https://github.com/delivrance>"
|
||||||
|
|
||||||
try:
|
|
||||||
import uvloop
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
uvloop.install()
|
|
||||||
|
|
||||||
from .errors import RPCError
|
from .errors import RPCError
|
||||||
from .client import *
|
from .client import *
|
||||||
from .client.handlers import *
|
from .client.handlers import *
|
||||||
|
Reference in New Issue
Block a user