]> granicus.if.org Git - python/commitdiff
backward compatible interface for bsddb
authorGuido van Rossum <guido@python.org>
Thu, 25 Jan 1996 18:33:39 +0000 (18:33 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 25 Jan 1996 18:33:39 +0000 (18:33 +0000)
Lib/dbhash.py [new file with mode: 0644]

diff --git a/Lib/dbhash.py b/Lib/dbhash.py
new file mode 100644 (file)
index 0000000..57c6194
--- /dev/null
@@ -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)