Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.db.mobio
Commits
013c29c9
Commit
013c29c9
authored
Aug 20, 2013
by
André Anjos
💬
Browse files
[python3] Use six module for py2/3 compatibility
parent
77f9a041
Changes
2
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
013c29c9
...
...
@@ -24,6 +24,7 @@ setup(
install_requires
=
[
'setuptools'
,
'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.
],
...
...
xbob/db/mobio/query.py
View file @
013c29c9
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment