Skip to content

Commit

Permalink
use six.string_types for tests (fix for python2)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisri committed May 5, 2020
1 parent fe09684 commit 04098ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/populse_db/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,8 @@ def __check_type_value(value, valid_type):
return True
if valid_type == FIELD_TYPE_BOOLEAN and value_type == bool:
return True
if valid_type == FIELD_TYPE_STRING and isinstance(value, str):
if valid_type == FIELD_TYPE_STRING and isinstance(value,
six.string_types):
return True
if valid_type == FIELD_TYPE_JSON and isinstance(value, dict):
return True
Expand Down

0 comments on commit 04098ff

Please sign in to comment.