From 69dff14d94b11c81bca6df3982c09a1176a1ca12 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 7 Jun 2026 17:49:00 +0100 Subject: [PATCH] Drop list compression (#12857) --- aiohttp/streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiohttp/streams.py b/aiohttp/streams.py index 72d26e607d7..8d089fb8e1d 100644 --- a/aiohttp/streams.py +++ b/aiohttp/streams.py @@ -549,7 +549,7 @@ def _read_nowait(self, n: int) -> bytes: count = len(self._buffer) if count == 1: return self._read_nowait_chunk(-1) - return b"".join([self._read_nowait_chunk(-1) for _ in range(count)]) + return b"".join(self._read_nowait_chunk(-1) for _ in range(count)) chunks: list[bytes] = [] while self._buffer: