mirror of
https://github.com/python/cpython.git
synced 2025-12-10 19:10:59 +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:
|
if verbose:
|
||||||
print "handlerA", args
|
print "handlerA", args
|
||||||
|
|
||||||
HandlerBCalled = "HandlerBCalled" # Exception
|
class HandlerBCalled(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
def handlerB(*args):
|
def handlerB(*args):
|
||||||
if verbose:
|
if verbose:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue