web should not be imported from aiohttp; use aiohttp.web instead
This commit is contained in:
		| @@ -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" | ||||
|  | ||||
|   | ||||
| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user