From 773fe1fdb127c653a463cb753e10d863e3da0fc1 Mon Sep 17 00:00:00 2001 From: Davte Date: Sun, 15 Nov 2020 20:55:22 +0100 Subject: [PATCH] web should not be imported from aiohttp; use aiohttp.web instead --- davtelepot/__init__.py | 2 +- davtelepot/utilities.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index eb7f02a..5f5c7cc 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -11,7 +11,7 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"] __license__ = "GNU General Public License v3.0" -__version__ = "2.6.18" +__version__ = "2.6.19" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/utilities.py b/davtelepot/utilities.py index e35136b..2af2c66 100644 --- a/davtelepot/utilities.py +++ b/davtelepot/utilities.py @@ -21,7 +21,6 @@ from difflib import SequenceMatcher from typing import Tuple, Union import aiohttp -from aiohttp import web from bs4 import BeautifulSoup @@ -1566,7 +1565,7 @@ def run_aiohttp_server(app, *args, **kwargs): """ loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) - web.run_app(app, *args, **kwargs) + aiohttp.web.run_app(app, *args, **kwargs) def custom_join(_list, joiner, final=None):