summaryrefslogtreecommitdiff
path: root/tools/InterfaceGenerator
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2017-09-22 11:13:55 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2017-09-22 11:14:22 -0400
commitccd116fb17a2a769855a3a35303386961354c207 (patch)
treeb3881d5ef755f832896d156f64c768b72c87b23d /tools/InterfaceGenerator
parent761523db24c1276311389f2500f92d945cedb25e (diff)
downloadsdl_core-ccd116fb17a2a769855a3a35303386961354c207.tar.gz
Update MOBILE_API.xml to match `rpc_spec` repofix/update_mobile_api_4.4.0
Includes fixes to build issues resulting from this update.
Diffstat (limited to 'tools/InterfaceGenerator')
-rwxr-xr-xtools/InterfaceGenerator/generator/parsers/RPCBase.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/InterfaceGenerator/generator/parsers/RPCBase.py b/tools/InterfaceGenerator/generator/parsers/RPCBase.py
index 59edf4a9b3..4853916dad 100755
--- a/tools/InterfaceGenerator/generator/parsers/RPCBase.py
+++ b/tools/InterfaceGenerator/generator/parsers/RPCBase.py
@@ -655,7 +655,11 @@ class Parser(object):
raise ParseError("Unexpected attributes for element '" +
element_name + "' of parameter '" +
params["name"])
- if len(subelement.getchildren()) != 0:
+ children = subelement.getchildren()
+ for child in children:
+ if child.tag == "description":
+ children.remove(child)
+ if len(children) != 0:
raise ParseError("Unexpected subelements for element '" +
element_name + "' of parameter '" +
params["name"])