From be7f51cb944de96823270aa44a54559d89e81108 Mon Sep 17 00:00:00 2001 From: Michael James Date: Sat, 6 Oct 2018 10:34:12 -0600 Subject: [PATCH] use isinstance rather than type --- .../raytheon/uf/common/dataquery/requests/RequestConstraint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataquery/requests/RequestConstraint.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataquery/requests/RequestConstraint.py index 1a75690..6bb6538 100644 --- a/dynamicserialize/dstypes/com/raytheon/uf/common/dataquery/requests/RequestConstraint.py +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataquery/requests/RequestConstraint.py @@ -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.