summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/coroutines.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2016-09-30 15:17:15 (GMT)
committerGuido van Rossum <guido@python.org>2016-09-30 15:17:15 (GMT)
commite3c65a7a228a5808a7af48a47fdd77e982f95d00 (patch)
tree4cc2fd3d36c79999764bb7c9a2de133fb1f5d034 /Lib/asyncio/coroutines.py
parent07cfd504e43c5078b8d106395c45b0a3f6c22fa3 (diff)
downloadcpython-e3c65a7a228a5808a7af48a47fdd77e982f95d00.zip
cpython-e3c65a7a228a5808a7af48a47fdd77e982f95d00.tar.gz
cpython-e3c65a7a228a5808a7af48a47fdd77e982f95d00.tar.bz2
Misc asyncio improvements from upstream
Diffstat (limited to 'Lib/asyncio/coroutines.py')
-rw-r--r--Lib/asyncio/coroutines.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py
index e013d64..5cecc76 100644
--- a/Lib/asyncio/coroutines.py
+++ b/Lib/asyncio/coroutines.py
@@ -120,8 +120,8 @@ class CoroWrapper:
def send(self, value):
return self.gen.send(value)
- def throw(self, exc):
- return self.gen.throw(exc)
+ def throw(self, type, value=None, traceback=None):
+ return self.gen.throw(type, value, traceback)
def close(self):
return self.gen.close()