From: Neal Norwitz Date: Sun, 31 Mar 2002 13:58:20 +0000 (+0000) Subject: Stop using string exceptions X-Git-Tag: v2.3c1~6223 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27a353020bef4318896bf16f558ed7e2af76e40a;p=thirdparty%2FPython%2Fcpython.git Stop using string exceptions --- diff --git a/Lib/bdb.py b/Lib/bdb.py index ccd729ceea7b..b05ed2209177 100644 --- a/Lib/bdb.py +++ b/Lib/bdb.py @@ -6,7 +6,7 @@ import types __all__ = ["BdbQuit","Bdb","Breakpoint"] -BdbQuit = 'bdb.BdbQuit' # Exception to give up completely +class BdbQuit(Exception): pass class Bdb: diff --git a/Lib/macpath.py b/Lib/macpath.py index f8ca05165ac9..2881c324538c 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -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