commit | b17acad68ea21c60dbc2088644f2934032304628 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Wed May 28 08:43:17 2008 +0000 |
committer | Georg Brandl <georg@python.org> | Wed May 28 08:43:17 2008 +0000 |
tree | cc040cbefab321dd34a06599f9a49a83a37977c1 | |
parent | e81f5ef1ebf57e9df2cfefabb5c5fa67defa6d2f [diff] [blame] |
Make db modules' error classes inherit IOError. Stop dbm from importing every dbm module when imported.
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 @@ __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)