]> granicus.if.org Git - python/commitdiff
Stop using string exceptions
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 31 Mar 2002 13:58:20 +0000 (13:58 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 31 Mar 2002 13:58:20 +0000 (13:58 +0000)
Lib/bdb.py
Lib/macpath.py

index ccd729ceea7b7487cf2ac3eff1a1d02c7373b784..b05ed2209177f79f02269ff76f53869ff9379cac 100644 (file)
@@ -6,7 +6,7 @@ import types
 
 __all__ = ["BdbQuit","Bdb","Breakpoint"]
 
-BdbQuit = 'bdb.BdbQuit' # Exception to give up completely
+class BdbQuit(Exception): pass
 
 
 class Bdb:
index f8ca05165ac9971603c71fe36a9dee5bf114746f..2881c324538c0f0543be00218f23cd986fcfea21 100644 (file)
@@ -170,7 +170,7 @@ def expanduser(path):
     """Dummy to retain interface-compatibility with other operating systems."""
     return path
 
-norm_error = 'macpath.norm_error: path cannot be normalized'
+class norm_error(Exception): pass
 
 def normpath(s):
     """Normalize a pathname.  Will return the same result for