cleaned up core.emane, core.services, core.xml, fixed bug introduced in coreobj.py

This commit is contained in:
bharnden 2018-10-11 17:26:34 -07:00
parent eb04e0a79f
commit 12cc40d3d3
11 changed files with 11 additions and 207 deletions

View file

@ -25,7 +25,7 @@ def convert_none(x):
"""
Helper to use 0 for None values.
"""
if type(x) is str:
if isinstance(x, basestring):
x = float(x)
if x is None:
return 0