Commit 39ba3392 authored by Markus Scheidgen's avatar Markus Scheidgen

Remove parsig tree debug output.

parent 725217b4
......@@ -302,26 +302,28 @@ class SimpleMatcher(object):
purposes. Shows the different sections and metanames in a tree-like
hierarchy.
"""
metanames = self.directMetaNames()
sections = self.sections
# First print sections
if sections:
logger.info((level) * " " + "SECTIONS: " + str(sections))
# Then print metanames. Indentation increases if a section has also been opened.
metaname_level = level
if sections and metanames:
metaname_level += 1
if metanames:
logger.info(metaname_level * " " + "METAINFOS: " + str(metanames))
# Recursion
new_level = level
if sections or metanames:
new_level += 1
for child in self.subMatchers:
child.printParsingTree(new_level)
pass
# TODO we never do this in nomad-fairdi
# metanames = self.directMetaNames()
# sections = self.sections
# # First print sections
# if sections:
# logger.info((level) * " " + "SECTIONS: " + str(sections))
# # Then print metanames. Indentation increases if a section has also been opened.
# metaname_level = level
# if sections and metanames:
# metaname_level += 1
# if metanames:
# logger.info(metaname_level * " " + "METAINFOS: " + str(metanames))
# # Recursion
# new_level = level
# if sections or metanames:
# new_level += 1
# for child in self.subMatchers:
# child.printParsingTree(new_level)
def closingParen(regex, i, nparen):
......
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