Commit 6a716972 authored by André Anjos's avatar André Anjos 💬
Browse files

[python3] string class comparison using six

parent a8e4f0ce
......@@ -25,6 +25,7 @@ setup(
'bob >= 1.1.0',
......@@ -9,6 +9,7 @@ from . import __doc__ as long_description
from . import Database as ReplayDatabase
from antispoofing.utils.db import File as FileBase, Database as DatabaseBase
import os
import six
class File(FileBase):
......@@ -127,7 +128,7 @@ class Database(DatabaseBase):
return 'video' in propname
elif propname is None:
return True
elif isinstance(propname, str):
elif isinstance(propname, six.string_types):
return 'video' == propname
# does not implement the given access protocol
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