fixed typo in configParser.py when parsing float values
This commit is contained in:
@@ -196,7 +196,7 @@ class ConfigOptionParser(object):
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
return value
|
return value
|
||||||
elif a['type'] == "float":
|
elif a['type'] == "float":
|
||||||
return long(value)
|
return float(value)
|
||||||
elif a['type'] == "complex":
|
elif a['type'] == "complex":
|
||||||
return complex(value)
|
return complex(value)
|
||||||
elif a['type'] == "function":
|
elif a['type'] == "function":
|
||||||
|
|||||||
Reference in New Issue
Block a user