Skip to content

Commit f8d7663

Browse files
committed
[xmlparser] Cleanup XMLReader.parse_tag
Removing v1.3 value specific leftover code.
1 parent 362bae3 commit f8d7663

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

odml/tools/xmlparser.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,6 @@ def parse_tag(self, root, fmt, insert_children=True):
231231
arguments = {}
232232
extra_args = {}
233233
children = []
234-
text = []
235-
236-
if root.text:
237-
text.append(root.text.strip())
238234

239235
for k, v in root.attrib.iteritems():
240236
k = k.lower()
@@ -273,8 +269,6 @@ def parse_tag(self, root, fmt, insert_children=True):
273269
else:
274270
self.error("Invalid element <%s> in odML document section <%s>"
275271
% (node.tag, root.tag), node)
276-
if node.tail:
277-
text.append(node.tail.strip())
278272

279273
if sys.version_info > (3,):
280274
self.check_mandatory_arguments(dict(list(arguments.items()) +

0 commit comments

Comments
 (0)