mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
use isinstance rather than type
This commit is contained in:
parent
cf1670b03d
commit
be7f51cb94
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue