Commit e5380c05 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

remove dependency on six

parent 0e8ca25e
Pipeline #17307 passed with stage
in 28 minutes and 33 seconds
......@@ -31,6 +31,11 @@ logger = bob.core.log.setup("bob.db.nist_sre12")
SQLITE_FILE = Interface().files()[0]
try:
basestring
except NameError:
basestring = str
class Database(bob.db.base.SQLiteDatabase):
"""The dataset class opens and maintains a connection opened to the Database.
......@@ -208,10 +213,9 @@ class Database(bob.db.base.SQLiteDatabase):
purposes, "purpose", self.purposes())
groups = self.check_parameters_for_validity(groups, "group", self.groups())
import six
if (model_ids is None):
model_ids = ()
elif (isinstance(model_ids, six.string_types)):
elif (isinstance(model_ids, basestring)):
model_ids = (model_ids,)
# Now query the database
......
......@@ -23,7 +23,6 @@ requirements:
- setuptools {{ setuptools }}
- numpy {{ numpy }}
- scipy {{ scipy }}
- six {{ six }}
- bob.extension
- bob.db.base
run:
......@@ -31,7 +30,6 @@ requirements:
- setuptools
- numpy
- scipy
- six
test:
imports:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment