Update badge.py to Python 3

This commit is contained in:
2018-12-05 21:02:23 -06:00
parent 6a3e430a5e
commit 8fd175685d
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ def get_total(report):
missed = 0
covered = 0
for r in report.split(":"):
doc = BeautifulSoup(file(r), 'xml')
doc = BeautifulSoup(open(r), 'xml')
tag = doc.select("report > counter[type^INST]")[0]
missed = missed + float(tag['missed'])
covered = covered + float(tag['covered'])