summaryrefslogtreecommitdiff
path: root/coverage/xmlreport.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-10-19 22:08:37 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-10-19 22:08:37 -0400
commit5aa8f70d4ee8b3d40d5caf69c42c67d4fd4f0118 (patch)
treebad8ec8d95104c115461b0bf4cd4e3584a46cfd7 /coverage/xmlreport.py
parentdfb5405959bbe14ebcf533cd442c41a314b8a4fd (diff)
downloadpython-coveragepy-5aa8f70d4ee8b3d40d5caf69c42c67d4fd4f0118.tar.gz
Generator expressons are ok now.
Diffstat (limited to 'coverage/xmlreport.py')
-rw-r--r--coverage/xmlreport.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py
index 1abfdef..d4b102f 100644
--- a/coverage/xmlreport.py
+++ b/coverage/xmlreport.py
@@ -137,8 +137,8 @@ class XmlReporter(Reporter):
class_hits = class_lines - len(analysis.missing)
if self.arcs:
- class_branches = sum([t for t,k in branch_stats.values()])
- missing_branches = sum([t-k for t,k in branch_stats.values()])
+ class_branches = sum(t for t, k in branch_stats.values())
+ missing_branches = sum(t - k for t, k in branch_stats.values())
class_br_hits = class_branches - missing_branches
else:
class_branches = 0.0