summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/coroutines.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2016-09-30 15:18:34 (GMT)
committerGuido van Rossum <guido@python.org>2016-09-30 15:18:34 (GMT)
commit0035be3fee832ebccd8c86576b9c604ca321cefa (patch)
tree4622d6c8636aa54e1aee845cd9bdb394b54e537b /Lib/asyncio/coroutines.py
parent61cd726d1abca5601f85d0029466ab9ec3216cc0 (diff)
parente3c65a7a228a5808a7af48a47fdd77e982f95d00 (diff)
downloadcpython-0035be3fee832ebccd8c86576b9c604ca321cefa.zip
cpython-0035be3fee832ebccd8c86576b9c604ca321cefa.tar.gz
cpython-0035be3fee832ebccd8c86576b9c604ca321cefa.tar.bz2
Misc asyncio improvements from upstream (merge 3.5->3.6)
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()