"examples/vscode:/vscode.git/clone" did not exist on "5e84353ebab5e0ce4fc762f64fabbdd9ac0c282a"
Unverified Commit 1f82c227 authored by pkulzc's avatar pkulzc Committed by GitHub
Browse files

Fix xml warning in create_pet_tf_record

Suppressed FutureWarning in create_pet_tf_record
parents 6c2f6462 7bf89340
...@@ -72,7 +72,7 @@ def recursive_parse_xml_to_dict(xml): ...@@ -72,7 +72,7 @@ def recursive_parse_xml_to_dict(xml):
Returns: Returns:
Python dictionary holding XML contents. Python dictionary holding XML contents.
""" """
if not xml: if not len(xml):
return {xml.tag: xml.text} return {xml.tag: xml.text}
result = {} result = {}
for child in xml: for child in xml:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment