]> granicus.if.org Git - python/commitdiff
Use docstrings for exception classes
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 31 Mar 2002 14:06:41 +0000 (14:06 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 31 Mar 2002 14:06:41 +0000 (14:06 +0000)
Lib/bdb.py
Lib/macpath.py

index b05ed2209177f79f02269ff76f53869ff9379cac..d5b051b5e33fd38fd10a7eb7c0199a076fa63930 100644 (file)
@@ -6,7 +6,8 @@ import types
 
 __all__ = ["BdbQuit","Bdb","Breakpoint"]
 
-class BdbQuit(Exception): pass
+class BdbQuit(Exception):
+    """Exception to give up completely"""
 
 
 class Bdb:
index 2881c324538c0f0543be00218f23cd986fcfea21..6501fcd91d3e7b75deef2a5702f1eabe20330f43 100644 (file)
@@ -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