Work with berkeleydb and try importing it first.

This commit is contained in:
Stuart D. Gathman
2024-05-29 18:08:30 -04:00
parent 35416dfc46
commit 5675adeb3c
3 changed files with 8 additions and 3 deletions
+4 -1
View File
@@ -1,5 +1,8 @@
try:
from bsddb3 import db
try:
from berkeleydb import db
except:
from bsddb3 import db
class DB(object):
def open(self,fname,mode):
if mode == 'r': flags = db.DB_RDONLY