summaryrefslogtreecommitdiff
path: root/Demo/threads
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:57:25 +0000
committerAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:57:25 +0000
commita0cb28b9290a93bfb5c4b842d3a50f3f3352d243 (patch)
tree3964ce96dec51e47a6185426ab8735f82e0dd3a7 /Demo/threads
parentec6a6118c894aa0d6e7712bd7559fb4c41b3648b (diff)
downloadcpython-a0cb28b9290a93bfb5c4b842d3a50f3f3352d243.tar.gz
Update uses of string exceptions
Diffstat (limited to 'Demo/threads')
-rw-r--r--Demo/threads/Coroutine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/threads/Coroutine.py b/Demo/threads/Coroutine.py
index 4cc65f7bf8..5de2b62d1b 100644
--- a/Demo/threads/Coroutine.py
+++ b/Demo/threads/Coroutine.py
@@ -93,8 +93,8 @@ class _CoEvent:
self.e.wait()
self.e.clear()
-Killed = 'Coroutine.Killed'
-EarlyExit = 'Coroutine.EarlyExit'
+class Killed(Exception): pass
+class EarlyExit(Exception): pass
class Coroutine:
def __init__(self):