diff options
Diffstat (limited to 'Lib/anydbm.py')
-rw-r--r-- | Lib/anydbm.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/anydbm.py b/Lib/anydbm.py new file mode 100644 index 0000000..49e819b --- /dev/null +++ b/Lib/anydbm.py @@ -0,0 +1,9 @@ +"""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 |