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: