From 6700142d832d1ba1a5724878142ea081a87353f5 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 25 Jan 1996 18:33:39 +0000 Subject: [PATCH] backward compatible interface for bsddb --- Lib/dbhash.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Lib/dbhash.py diff --git a/Lib/dbhash.py b/Lib/dbhash.py new file mode 100644 index 00000000000..57c6194b6c9 --- /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)