mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Update uses of string exceptions
This commit is contained in:
parent
0bef15846f
commit
d9a9c1066c
4 changed files with 7 additions and 9 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue