Rip out unused whichbd module in preparation for python3 port
This commit is contained in:
+1
-13
@@ -294,19 +294,7 @@ def _dataset_to_list(dataset):
|
|||||||
else:
|
else:
|
||||||
return [dataset.strip().strip(',')]
|
return [dataset.strip().strip(',')]
|
||||||
if dataset[-3:] == '.db' or dataset[:3] == 'db:':
|
if dataset[-3:] == '.db' or dataset[:3] == 'db:':
|
||||||
# This is a Sleepycat (Oracle) DB dataset
|
# This is a Sleepycat (Oracle) DB dataset, which we dont support
|
||||||
import whichdb # Will need rewriting someday for python3
|
|
||||||
if dataset[-3:] == '.db':
|
|
||||||
dbname = dataset
|
|
||||||
elif dataset[:3] == 'db:':
|
|
||||||
dbname = dataset[3:]
|
|
||||||
else:
|
|
||||||
raise dkim.ParameterError('Unimplmented dataset type: {0}'
|
|
||||||
.format(type(dataset)))
|
|
||||||
if whichdb.whichdb(dbname) != 'dbhash':
|
|
||||||
raise dkim.ParameterError('Unimplmented dataset type: {0}'
|
|
||||||
.format(type(dataset)))
|
|
||||||
#TODO replace this with code to use db maps
|
|
||||||
raise dkim.ParameterError('Unsupported dataset db datase: {0}'
|
raise dkim.ParameterError('Unsupported dataset db datase: {0}'
|
||||||
.format(type(dataset)))
|
.format(type(dataset)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user