# HG changeset patch # User cmlenz # Date 1144828531 0 # Node ID 222c77e55315d29a969dde3685447ba790c832fc # Parent 6469c692c603abfe8752b8dd833c372ff328e7d5 Fix variable reference in ``. diff --git a/bitten/build/pythontools.py b/bitten/build/pythontools.py --- a/bitten/build/pythontools.py +++ b/bitten/build/pythontools.py @@ -207,15 +207,15 @@ num_covered += 1 lines.append(prev_hits) - module.append(xmlio.Element('line_hits')[' '.join(lines)]) + elem.append(xmlio.Element('line_hits')[' '.join(lines)]) num_lines = len(code_lines) if num_lines: percentage = int(round(num_covered * 100 / num_lines)) else: percentage = 0 - module.attr['percentage'] = percentage - module.attr['lines'] = num_lines + elem.attr['percentage'] = percentage + elem.attr['lines'] = num_lines try: summary_file = open(ctxt.resolve(summary), 'r')