Commit d815a0ed authored by legoktm's avatar legoktm

More compatible

parent 6ed3ec6f
......@@ -35,8 +35,14 @@ def process_file(fname):
root = tree.getroot()
project = root.getchildren()[0]
assert project.tag == 'project'
metrics = project.getchildren()[0]
assert metrics.tag == 'metrics'
metrics = False
for child in project.getchildren():
if child.tag == 'metrics':
metrics = child
if not metrics:
raise ValueError('Unable to find <metrics> in %s!' % fname)
stuff = [
'methods', 'conditionals', 'statements', 'elements'
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment