summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/futures.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-09 20:34:27 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-09 20:34:27 (GMT)
commit587feb19e8f9c967e6f88ecd85eca962a57d5410 (patch)
treebe76317326a26551b7bc637ba2dbc478fc3c6841 /Lib/asyncio/futures.py
parent70db9e428aa476682ca80369d09a968b35729845 (diff)
downloadcpython-587feb19e8f9c967e6f88ecd85eca962a57d5410.zip
cpython-587feb19e8f9c967e6f88ecd85eca962a57d5410.tar.gz
cpython-587feb19e8f9c967e6f88ecd85eca962a57d5410.tar.bz2
Issue #23209: Break some reference cycles in asyncio. Patch written by Martin
Richard.
Diffstat (limited to 'Lib/asyncio/futures.py')
-rw-r--r--Lib/asyncio/futures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py
index e0e12f0..19212a9 100644
--- a/Lib/asyncio/futures.py
+++ b/Lib/asyncio/futures.py
@@ -405,5 +405,5 @@ def wrap_future(fut, *, loop=None):
new_future.add_done_callback(_check_cancel_other)
fut.add_done_callback(
lambda future: loop.call_soon_threadsafe(
- new_future._copy_state, fut))
+ new_future._copy_state, future))
return new_future