diff --git a/strictyaml/utils.py b/strictyaml/utils.py index c653fe8..932d16a 100644 --- a/strictyaml/utils.py +++ b/strictyaml/utils.py @@ -56,11 +56,7 @@ def is_string(value): """ Python 2/3 compatible way of checking if a value is a string. """ - return isinstance(value, unicode) or str(type(value)) in ( - "", - "", - "", - ) + return isinstance(value, (unicode, str)) def is_integer(value):