More isinstance fixes (#3405)

* More isinstance fixes
* Use double types
This commit is contained in:
jctanner 2016-11-09 15:25:17 -05:00 committed by Matt Clay
parent 32fef233f2
commit b3795322e9
3 changed files with 7 additions and 7 deletions

View file

@ -194,7 +194,7 @@ class KazooCommandProxy():
for i in dir(zstat):
if not i.startswith('_'):
attr = getattr(zstat, i)
if type(attr) in (int, str):
if isinstance(attr, (int, str)):
stat_dict[i] = attr
result = True, {'msg': 'The node was retrieved.', 'znode': path, 'value': value,
'stat': stat_dict}