mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Stop using string exceptions
This commit is contained in:
parent
57b17ad6ae
commit
27a353020b
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ import types
|
|||
|
||||
__all__ = ["BdbQuit","Bdb","Breakpoint"]
|
||||
|
||||
BdbQuit = 'bdb.BdbQuit' # Exception to give up completely
|
||||
class BdbQuit(Exception): pass
|
||||
|
||||
|
||||
class Bdb:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue