Skip to content

Commit 9623227

Browse files
author
rodrigo.nogueira
committed
fix: resolve CodeQL warning about mixed import styles in web_srv.py
1 parent c22e9b7 commit 9623227

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

examples/web_srv.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import asyncio
55
import textwrap
66

7-
import aiohttp
8-
from aiohttp import web
7+
from aiohttp import ClientSession, web
98

109

1110
async def intro(request: web.Request) -> web.StreamResponse:
@@ -72,7 +71,7 @@ async def run_tests(port: int) -> None:
7271
"""Run all tests against the server."""
7372
base_url = f"http://localhost:{port}"
7473

75-
async with aiohttp.ClientSession() as session:
74+
async with ClientSession() as session:
7675
print("=== Test 1: Intro page ===")
7776
async with session.get(f"{base_url}/") as resp:
7877
assert resp.status == 200

0 commit comments

Comments
 (0)