summaryrefslogtreecommitdiff
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2014-05-27 21:24:43 +0300
committerAndrew Svetlov <andrew.svetlov@gmail.com>2014-05-27 21:24:43 +0300
commit96b2a5c3e853385276f0f1dc005267e6eeda5149 (patch)
tree0d4b57202a49d2e131a91f1907934335510ac77d /Lib/asyncio
parent06bd31b8c5cf40220bb1c7c0059af752098bcb5d (diff)
downloadcpython-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.py2
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