From 21a56514001f6566b49d22691c72956c5baff34e Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 8 Jul 2018 17:44:47 +0200 Subject: [PATCH] Remove unnecessary dependency --- telethon/network/connection/http.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/telethon/network/connection/http.py b/telethon/network/connection/http.py index 63717543..955b9ab3 100644 --- a/telethon/network/connection/http.py +++ b/telethon/network/connection/http.py @@ -1,22 +1,12 @@ import errno import ssl -try: - import aiohttp -except ImportError: - aiohttp = None - - from .common import Connection from ...extensions import TcpClient class ConnectionHttp(Connection): def __init__(self, *, loop, timeout, proxy=None): - if aiohttp is None: - raise RuntimeError('HTTP(S) mode requires the aiohttp ' - 'package, which is not installed') - super().__init__(loop=loop, timeout=timeout, proxy=proxy) self.conn = TcpClient( timeout=self._timeout, loop=self._loop, proxy=self._proxy,