summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/selector_events.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2014-05-27 18:24:43 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2014-05-27 18:24:43 (GMT)
commit3207a03035deabbff8a68f4f29dc33d1da944801 (patch)
treecb2be9808649bd27f0ec1ec810c55597d75d06aa /Lib/asyncio/selector_events.py
parent0a4d13e87e0272085ed920b284f7245f01137cb3 (diff)
downloadcpython-3207a03035deabbff8a68f4f29dc33d1da944801.zip
cpython-3207a03035deabbff8a68f4f29dc33d1da944801.tar.gz
cpython-3207a03035deabbff8a68f4f29dc33d1da944801.tar.bz2
Fix for raising exception not derived from BaseException in _SelectorSslTransport.resume_reading
Diffstat (limited to 'Lib/asyncio/selector_events.py')
-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 c7df8d8..86a8d23 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