"docs/source/git@developer.sourcefind.cn:norm/vllm.git" did not exist on "c20ecb6a51cb58d408eb5ae7b03ac76c7b83e609"
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