cleaned up core.emane, core.services, core.xml, fixed bug introduced in coreobj.py
This commit is contained in:
parent
eb04e0a79f
commit
12cc40d3d3
11 changed files with 11 additions and 207 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue