diff options
author | Victor Stinner <vstinner@redhat.com> | 2016-02-05 13:15:50 +0100 |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2016-02-05 13:15:50 +0100 |
commit | f7a315a22528a93ba3aa0dcdda5ba8c8001f7836 (patch) | |
tree | c91961753ddfb1680449ccb1589e52844715e3ab /trollius/coroutines.py | |
parent | 9fb2a3d01056adf2dc83022dea8220bab67d30ca (diff) | |
download | trollius-git-f7a315a22528a93ba3aa0dcdda5ba8c8001f7836.tar.gz |
Fix CoroWrapper.throw()
Add support for up to 3 parameters, not only 1.
Diffstat (limited to 'trollius/coroutines.py')
-rw-r--r-- | trollius/coroutines.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trollius/coroutines.py b/trollius/coroutines.py index 9def984..6a06989 100644 --- a/trollius/coroutines.py +++ b/trollius/coroutines.py @@ -198,8 +198,8 @@ class CoroWrapper: def send(self, value): return self.gen.send(value) - def throw(self, exc): - return self.gen.throw(exc) + def throw(self, exc_type, exc_value=None, exc_tb=None): + return self.gen.throw(exc_type, exc_value, exc_tb) def close(self): return self.gen.close() |