Guido van Rossum | a48061a | 1995-01-10 00:31:14 +0000 | [diff] [blame] | 1 | """A generic interface to all dbm clones.""" |
2 | |||||
3 | try: | ||||
4 | import dbm | ||||
5 | def open(file, mode = 'rw'): | ||||
6 | return dbm.open(file, mode, 0666) | ||||
7 | except ImportError: | ||||
8 | import dbmac | ||||
9 | open = dbmac.open |