summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/staggered.py
diff options
context:
space:
mode:
authorThomas Grainger <tagrain@gmail.com>2024-10-02 23:32:31 (GMT)
committerGitHub <noreply@github.com>2024-10-02 23:32:31 (GMT)
commitc066bf553577d1000e208eb078d9e758c3e41186 (patch)
tree0d754f19f47cf0fb5c5a126c6d6b6450b273ef49 /Lib/asyncio/staggered.py
parent6810928927e4d12d9a5dd90e672afb096882b730 (diff)
downloadcpython-c066bf553577d1000e208eb078d9e758c3e41186.zip
cpython-c066bf553577d1000e208eb078d9e758c3e41186.tar.gz
cpython-c066bf553577d1000e208eb078d9e758c3e41186.tar.bz2
gh-124858: fix happy eyeballs refcyles (#124859)
Diffstat (limited to 'Lib/asyncio/staggered.py')
-rw-r--r--Lib/asyncio/staggered.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/asyncio/staggered.py b/Lib/asyncio/staggered.py
index c3a7441..326c6f7 100644
--- a/Lib/asyncio/staggered.py
+++ b/Lib/asyncio/staggered.py
@@ -133,6 +133,7 @@ async def staggered_race(coro_fns, delay, *, loop=None):
raise d.exception()
return winner_result, winner_index, exceptions
finally:
+ del exceptions
# Make sure no tasks are left running if we leave this function
for t in running_tasks:
t.cancel()