mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Let's not use string exceptions any more.
This commit is contained in:
parent
e6e77e5fe7
commit
8b2cbfd180
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ def handlerA(*args):
|
|||
if verbose:
|
||||
print "handlerA", args
|
||||
|
||||
HandlerBCalled = "HandlerBCalled" # Exception
|
||||
class HandlerBCalled(Exception):
|
||||
pass
|
||||
|
||||
def handlerB(*args):
|
||||
if verbose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue