diff options
author | Georg Brandl <georg@python.org> | 2008-05-28 08:43:17 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-28 08:43:17 (GMT) |
commit | b17acad68ea21c60dbc2088644f2934032304628 (patch) | |
tree | cc040cbefab321dd34a06599f9a49a83a37977c1 /Lib/dbm/bsd.py | |
parent | e81f5ef1ebf57e9df2cfefabb5c5fa67defa6d2f (diff) | |
download | cpython-b17acad68ea21c60dbc2088644f2934032304628.zip cpython-b17acad68ea21c60dbc2088644f2934032304628.tar.gz cpython-b17acad68ea21c60dbc2088644f2934032304628.tar.bz2 |
Make db modules' error classes inherit IOError.
Stop dbm from importing every dbm module when imported.
Diffstat (limited to 'Lib/dbm/bsd.py')
-rw-r--r-- | Lib/dbm/bsd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/dbm/bsd.py b/Lib/dbm/bsd.py index 8353f50..2dccadb 100644 --- a/Lib/dbm/bsd.py +++ b/Lib/dbm/bsd.py @@ -4,7 +4,8 @@ import bsddb __all__ = ["error", "open"] -error = bsddb.error +class error(bsddb.error, IOError): + pass def open(file, flag = 'r', mode=0o666): return bsddb.hashopen(file, flag, mode) |