]> granicus.if.org Git - python/commitdiff
Let's not use string exceptions any more.
authorArmin Rigo <arigo@tunes.org>
Sat, 7 Aug 2004 21:27:43 +0000 (21:27 +0000)
committerArmin Rigo <arigo@tunes.org>
Sat, 7 Aug 2004 21:27:43 +0000 (21:27 +0000)
Lib/test/test_signal.py

index 5c1132254ed44e43acb736e6c76698d5095118d9..042cfa93e82f1af1bb2f57862f2945d5b1d64938 100644 (file)
@@ -29,7 +29,8 @@ def handlerA(*args):
     if verbose:
         print "handlerA", args
 
-HandlerBCalled = "HandlerBCalled"       # Exception
+class HandlerBCalled(Exception):
+    pass
 
 def handlerB(*args):
     if verbose: