web should not be imported from aiohttp; use aiohttp.web instead

This commit is contained in:
Davte 2020-11-15 20:55:22 +01:00
parent ddf25f8dd1
commit 773fe1fdb1
Signed by: Davte
GPG Key ID: 209AE674A0007425
2 changed files with 2 additions and 3 deletions

View File

@ -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"

View File

@ -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):