--- a/xmlclass/xmlclass.py Mon Oct 09 12:30:14 2017 +0300
+++ b/xmlclass/xmlclass.py Mon Oct 09 16:04:39 2017 +0300
@@ -240,12 +240,14 @@
return GetInteger
-def GenerateFloatExtraction(type, extra_values=[]):
+def GenerateFloatExtraction(type, extra_values=None):
"""
Function that generates an extraction function for float
@param type: name of the type of float
@return: function generated
"""
+ extra_values = [] if extra_values is None else extra_values
+
def GetFloat(attr, extract=True):
"""
Function that extracts a float from a tree node or a string