From: Neal Norwitz Date: Sun, 31 Mar 2002 14:06:41 +0000 (+0000) Subject: Use docstrings for exception classes X-Git-Tag: v2.3c1~6221 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93cf79fde418725f2c2334eb062f9999da9e806d;p=python Use docstrings for exception classes --- diff --git a/Lib/bdb.py b/Lib/bdb.py index b05ed22091..d5b051b5e3 100644 --- a/Lib/bdb.py +++ b/Lib/bdb.py @@ -6,7 +6,8 @@ import types __all__ = ["BdbQuit","Bdb","Breakpoint"] -class BdbQuit(Exception): pass +class BdbQuit(Exception): + """Exception to give up completely""" class Bdb: diff --git a/Lib/macpath.py b/Lib/macpath.py index 2881c32453..6501fcd91d 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -170,7 +170,8 @@ def expanduser(path): """Dummy to retain interface-compatibility with other operating systems.""" return path -class norm_error(Exception): pass +class norm_error(Exception): + """Path cannot be normalized""" def normpath(s): """Normalize a pathname. Will return the same result for