Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27a3530

Browse files
committed
Stop using string exceptions
1 parent 57b17ad commit 27a3530

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/bdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
__all__ = ["BdbQuit","Bdb","Breakpoint"]
88

9-
BdbQuit = 'bdb.BdbQuit' # Exception to give up completely
9+
class BdbQuit(Exception): pass
1010

1111

1212
class Bdb:

Lib/macpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def expanduser(path):
170170
"""Dummy to retain interface-compatibility with other operating systems."""
171171
return path
172172

173-
norm_error = 'macpath.norm_error: path cannot be normalized'
173+
class norm_error(Exception): pass
174174

175175
def normpath(s):
176176
"""Normalize a pathname. Will return the same result for

0 commit comments

Comments
 (0)