Kaydet (Commit) 27a35302 authored tarafından Neal Norwitz's avatar Neal Norwitz

Stop using string exceptions

üst 57b17ad6
...@@ -6,7 +6,7 @@ import types ...@@ -6,7 +6,7 @@ import types
__all__ = ["BdbQuit","Bdb","Breakpoint"] __all__ = ["BdbQuit","Bdb","Breakpoint"]
BdbQuit = 'bdb.BdbQuit' # Exception to give up completely class BdbQuit(Exception): pass
class Bdb: class Bdb:
......
...@@ -170,7 +170,7 @@ def expanduser(path): ...@@ -170,7 +170,7 @@ def expanduser(path):
"""Dummy to retain interface-compatibility with other operating systems.""" """Dummy to retain interface-compatibility with other operating systems."""
return path return path
norm_error = 'macpath.norm_error: path cannot be normalized' class norm_error(Exception): pass
def normpath(s): def normpath(s):
"""Normalize a pathname. Will return the same result for """Normalize a pathname. Will return the same result for
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment