web should not be imported from aiohttp; use aiohttp.web instead
This commit is contained in:
parent
ddf25f8dd1
commit
773fe1fdb1
@ -11,7 +11,7 @@ __author__ = "Davide Testa"
|
|||||||
__email__ = "davide@davte.it"
|
__email__ = "davide@davte.it"
|
||||||
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
||||||
__license__ = "GNU General Public License v3.0"
|
__license__ = "GNU General Public License v3.0"
|
||||||
__version__ = "2.6.18"
|
__version__ = "2.6.19"
|
||||||
__maintainer__ = "Davide Testa"
|
__maintainer__ = "Davide Testa"
|
||||||
__contact__ = "t.me/davte"
|
__contact__ = "t.me/davte"
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ from difflib import SequenceMatcher
|
|||||||
from typing import Tuple, Union
|
from typing import Tuple, Union
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
from aiohttp import web
|
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
|
|
||||||
@ -1566,7 +1565,7 @@ def run_aiohttp_server(app, *args, **kwargs):
|
|||||||
"""
|
"""
|
||||||
loop = asyncio.new_event_loop()
|
loop = asyncio.new_event_loop()
|
||||||
asyncio.set_event_loop(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):
|
def custom_join(_list, joiner, final=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user