Commit 013c29c9 authored by André Anjos's avatar André Anjos 💬
Browse files

[python3] Use six module for py2/3 compatibility

parent 77f9a041
......@@ -24,6 +24,7 @@ setup(
'six', # py2/3 compatibility library
'bob', # base signal proc./machine learning library
'xbob.db.verification.utils>=0.1.4' # defines a set of utilities for face verification databases like this one.
......@@ -7,6 +7,7 @@ MOBIO database in the most obvious ways.
import os
import six
from bob.db import utils
from .models import *
from .driver import Interface
......@@ -414,7 +415,7 @@ class Database(xbob.db.verification.utils.SQLiteDatabase, xbob.db.verification.u
if(model_ids is None):
model_ids = ()
elif isinstance(model_ids, (str,unicode)):
elif isinstance(model_ids, six.string_types):
model_ids = (model_ids,)
# Now query the database
Supports Markdown
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