summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-01-25 18:33:39 (GMT)
committerGuido van Rossum <guido@python.org>1996-01-25 18:33:39 (GMT)
commit6700142d832d1ba1a5724878142ea081a87353f5 (patch)
treee2958c26acacc4d216517a7339fa2b9380caff36
parent0182c068abc98338aef681df89a372b6851b6820 (diff)
downloadcpython-6700142d832d1ba1a5724878142ea081a87353f5.zip
cpython-6700142d832d1ba1a5724878142ea081a87353f5.tar.gz
cpython-6700142d832d1ba1a5724878142ea081a87353f5.tar.bz2
backward compatible interface for bsddb
-rw-r--r--Lib/dbhash.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/dbhash.py b/Lib/dbhash.py
new file mode 100644
index 0000000..57c6194
--- /dev/null
+++ b/Lib/dbhash.py
@@ -0,0 +1,8 @@
+"""Provide a (g)dbm-compatible interface to bsdhash.hashopen."""
+
+import bsddb
+
+error = bsddb.error
+
+def open(file, flag, mode):
+ return bsddb.hashopen(file, flag, mode)