We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69a7fd7 commit e9808c3Copy full SHA for e9808c3
CHANGES/10941.bugfix.rst
@@ -0,0 +1 @@
1
+10915.bugfix.rst
aiohttp/payload.py
@@ -815,7 +815,10 @@ async def write_with_length(
815
816
try:
817
while True:
818
- chunk = await self._iter.__anext__()
+ if sys.version_info >= (3, 10):
819
+ chunk = await anext(self._iter)
820
+ else:
821
+ chunk = await self._iter.__anext__()
822
if remaining_bytes is None:
823
await writer.write(chunk)
824
# If we have a content length limit
0 commit comments