Stop using string exceptions

This commit is contained in:
Neal Norwitz 2002-03-31 13:58:20 +00:00
parent 57b17ad6ae
commit 27a353020b
2 changed files with 2 additions and 2 deletions

View 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:

View 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