Use docstrings for exception classes

This commit is contained in:
Neal Norwitz 2002-03-31 14:06:41 +00:00
parent f74e46cf47
commit 93cf79fde4
2 changed files with 4 additions and 2 deletions

View 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:

View 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