diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2014-05-27 21:24:43 +0300 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2014-05-27 21:24:43 +0300 |
commit | 96b2a5c3e853385276f0f1dc005267e6eeda5149 (patch) | |
tree | 0d4b57202a49d2e131a91f1907934335510ac77d /Lib/asyncio | |
parent | 06bd31b8c5cf40220bb1c7c0059af752098bcb5d (diff) | |
download | cpython-96b2a5c3e853385276f0f1dc005267e6eeda5149.tar.gz |
Fix for raising exception not derived from BaseException in _SelectorSslTransport.resume_reading
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/selector_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py index c7df8d8dd0..86a8d23c09 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -670,7 +670,7 @@ class _SelectorSslTransport(_SelectorTransport): def resume_reading(self): if not self._paused: - raise ('Not paused') + raise RuntimeError('Not paused') self._paused = False if self._closing: return |