summaryrefslogtreecommitdiffstats
path: root/Lib/dbhash.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/dbhash.py')
-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)