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

Skip to content

Commit 93cf79f

Browse files
committed
Use docstrings for exception classes
1 parent f74e46c commit 93cf79f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/bdb.py

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

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

9-
class BdbQuit(Exception): pass
9+
class BdbQuit(Exception):
10+
"""Exception to give up completely"""
1011

1112

1213
class Bdb:

Lib/macpath.py

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

173-
class norm_error(Exception): pass
173+
class norm_error(Exception):
174+
"""Path cannot be normalized"""
174175

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

0 commit comments

Comments
 (0)