diff options
Diffstat (limited to 'release/scripts/modules/rna_xml.py')
-rw-r--r-- | release/scripts/modules/rna_xml.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/modules/rna_xml.py b/release/scripts/modules/rna_xml.py index 530542e6089..5a76c7878b8 100644 --- a/release/scripts/modules/rna_xml.py +++ b/release/scripts/modules/rna_xml.py @@ -250,19 +250,19 @@ def xml2rna( value_xml = xml_node.attributes[attr].value subvalue_type = type(subvalue) - tp_name = 'UNKNOWN' + # tp_name = 'UNKNOWN' if subvalue_type == float: value_xml_coerce = float(value_xml) - tp_name = 'FLOAT' + # tp_name = 'FLOAT' elif subvalue_type == int: value_xml_coerce = int(value_xml) - tp_name = 'INT' + # tp_name = 'INT' elif subvalue_type == bool: value_xml_coerce = {'TRUE': True, 'FALSE': False}[value_xml] - tp_name = 'BOOL' + # tp_name = 'BOOL' elif subvalue_type == str: value_xml_coerce = value_xml - tp_name = 'STR' + # tp_name = 'STR' elif hasattr(subvalue, "__len__"): if value_xml.startswith("#"): # read hexadecimal value as float array @@ -280,7 +280,7 @@ def xml2rna( except ValueError: # bool vector property value_xml_coerce = [{'TRUE': True, 'FALSE': False}[v] for v in value_xml_split] del value_xml_split - tp_name = 'ARRAY' + # tp_name = 'ARRAY' # print(" %s.%s (%s) --- %s" % (type(value).__name__, attr, tp_name, subvalue_type)) try: |