diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2008-09-13 01:57:25 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2008-09-13 01:57:25 (GMT) |
commit | d9a9c1066c64900a902f5a70b132880e29749ecc (patch) | |
tree | 3a019489694ff69f0a94003e0eea5952020aeb6c /Demo/threads | |
parent | 0bef15846fb3a3a0c2c277ee7bc22ace719a47b6 (diff) | |
download | cpython-d9a9c1066c64900a902f5a70b132880e29749ecc.zip cpython-d9a9c1066c64900a902f5a70b132880e29749ecc.tar.gz cpython-d9a9c1066c64900a902f5a70b132880e29749ecc.tar.bz2 |
Update uses of string exceptions
Diffstat (limited to 'Demo/threads')
-rw-r--r-- | Demo/threads/Coroutine.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/threads/Coroutine.py b/Demo/threads/Coroutine.py index 4cc65f7..5de2b62 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): |