use isinstance rather than type

This commit is contained in:
Michael James 2018-10-06 10:34:12 -06:00
parent cf1670b03d
commit be7f51cb94

View file

@ -208,7 +208,7 @@ class RequestConstraint(object):
@staticmethod
def _stringify(value):
if type(value) in {str, int, bool, float}:
if isinstance(value, (str, int, long, float)):
return str(value)
else:
# Collections are not allowed; they are handled separately.