Queer European MD passionate about IT
Bladeren bron

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

Davte 4 jaren geleden
bovenliggende
commit
773fe1fdb1
2 gewijzigde bestanden met toevoegingen van 2 en 3 verwijderingen
  1. 1 1
      davtelepot/__init__.py
  2. 1 2
      davtelepot/utilities.py

+ 1 - 1
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"
 

+ 1 - 2
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):