Guido van Rossum | 6700142 | 1996-01-25 18:33:39 +0000 | [diff] [blame] | 1 | """Provide a (g)dbm-compatible interface to bsdhash.hashopen.""" |
2 | |||||
3 | import bsddb | ||||
4 | |||||
5 | error = bsddb.error | ||||
6 | |||||
Guido van Rossum | 9f2b524 | 1998-07-03 14:16:55 +0000 | [diff] [blame^] | 7 | def open(file, flag, mode=0666): |
Guido van Rossum | 6700142 | 1996-01-25 18:33:39 +0000 | [diff] [blame] | 8 | return bsddb.hashopen(file, flag, mode) |