summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Ludwig <f.ludwig@greyrook.com>2020-10-23 20:53:56 +0200
committerFlorian Ludwig <f.ludwig@greyrook.com>2020-10-23 20:53:56 +0200
commit89c73600be7b2e751d51fa9be2d290c753209612 (patch)
tree81266ed7dc3ee9e94e87ccc6e21655e0df5a5ef1
parent3c509626f60cecec4c0495931728b2128aa625d4 (diff)
downloadrdflib-89c73600be7b2e751d51fa9be2d290c753209612.tar.gz
remove old bsddb lib usage
bsddb was in the python2 stdlib but has been removed in python 3.
-rw-r--r--rdflib/plugins/stores/sleepycat.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/rdflib/plugins/stores/sleepycat.py b/rdflib/plugins/stores/sleepycat.py
index 7729969e..b6b90470 100644
--- a/rdflib/plugins/stores/sleepycat.py
+++ b/rdflib/plugins/stores/sleepycat.py
@@ -12,16 +12,11 @@ def bb(u):
try:
- from bsddb import db
+ from bsddb3 import db
has_bsddb = True
except ImportError:
- try:
- from bsddb3 import db
-
- has_bsddb = True
- except ImportError:
- has_bsddb = False
+ has_bsddb = False
if has_bsddb: