Skip to content

Commit

Permalink
Reformatting the code to make it 'black' compatible. The formatting i…
Browse files Browse the repository at this point in the history
…s inconsistent now, though, because black insists on having the line break at different positions (sometimes after 'find', sometimes after 'get').
  • Loading branch information
dbeyer committed Nov 1, 2019
1 parent fc17fad commit a05a7ad
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions contrib/mergeBenchmarkSets.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ def main(argv=None):
for result in resultXML.findall("run"):
run = result.get("name")
try:
status_from_verification = result.find(
'column[@title="status"]'
).get("value")
category_from_verification = result.find(
'column[@title="category"]'
).get("value")
status_from_verification = result.find('column[@title="status"]').get(
"value"
)
category_from_verification = result.find('column[@title="category"]').get(
"value"
)
except:
status_from_verification = "not found"
category_from_verification = "not found"
Expand All @@ -155,9 +155,11 @@ def main(argv=None):
result.append(scoreColumn)
elif result.get("properties") == "coverage-branches":
try:
coverage_value = witness.find(
'column[@title="branches_covered"]'
).get("value").replace("%", "")
coverage_value = (
witness.find('column[@title="branches_covered"]')
.get("value")
.replace("%", "")
)
except:
coverage_value = "0.00"
statusWit, categoryWit = (status_from_verification, "correct")
Expand Down

0 comments on commit a05a7ad

Please sign in to comment.