mirror of
https://github.com/python/cpython.git
synced 2025-10-24 02:13:49 +00:00
10 lines
182 B
Python
10 lines
182 B
Python
|
|
"""A generic interface to all dbm clones."""
|
||
|
|
|
||
|
|
try:
|
||
|
|
import dbm
|
||
|
|
def open(file, mode = 'rw'):
|
||
|
|
return dbm.open(file, mode, 0666)
|
||
|
|
except ImportError:
|
||
|
|
import dbmac
|
||
|
|
open = dbmac.open
|