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 77c0115 commit 6512aaaCopy full SHA for 6512aaa
CHANGES/10941.bugfix.rst
@@ -0,0 +1 @@
1
+10915.bugfix.rst
aiohttp/payload.py
@@ -810,7 +810,10 @@ async def write_with_length(
810
811
try:
812
while True:
813
- chunk = await self._iter.__anext__()
+ if sys.version_info >= (3, 10):
814
+ chunk = await anext(self._iter)
815
+ else:
816
+ chunk = await self._iter.__anext__()
817
if remaining_bytes is None:
818
await writer.write(chunk)
819
# If we have a content length limit
0 commit comments