Update uses of string exceptions

This commit is contained in:
Andrew M. Kuchling 2008-09-13 01:57:25 +00:00
parent 0bef15846f
commit d9a9c1066c
4 changed files with 7 additions and 9 deletions

View file

@ -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):