diff options
author | Fred Drake <fdrake@acm.org> | 2000-12-11 18:13:19 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-12-11 18:13:19 (GMT) |
commit | 7c1e5adf27ba6ee1d041f28df60242ca2dd9b5ff (patch) | |
tree | 5808e54d44ca997a95682cf3d3d92304f5ff96cf /Lib/ConfigParser.py | |
parent | 5255c791cc9014d35771989911109bfb5d215438 (diff) | |
download | cpython-7c1e5adf27ba6ee1d041f28df60242ca2dd9b5ff.zip cpython-7c1e5adf27ba6ee1d041f28df60242ca2dd9b5ff.tar.gz cpython-7c1e5adf27ba6ee1d041f28df60242ca2dd9b5ff.tar.bz2 |
Make ConfigParser.Error inherit from Exception.
Diffstat (limited to 'Lib/ConfigParser.py')
-rw-r--r-- | Lib/ConfigParser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 59bf4b5..2f60742 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -96,11 +96,13 @@ MAX_INTERPOLATION_DEPTH = 10 # exception classes -class Error: +class Error(Exception): def __init__(self, msg=''): self._msg = msg + Exception.__init__(self, msg) def __repr__(self): return self._msg + __str__ = __repr__ class NoSectionError(Error): def __init__(self, section): |