"git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "989465e807c4445dd260344a092763c99eff3aee"
Commit 7bf89340 authored by Will Ayd's avatar Will Ayd
Browse files

Suppressed FutureWarning in create_pet_tf_record

parent 6c2f6462
...@@ -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