From 0827ad1c07f6c7e1eb14b7b99484f0e141192642 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 13 Mar 2009 07:48:44 -0400 Subject: CodeAnalyzer was a terminology conflict with coverage.analysis, and it's really more of a parser anyway. --- coverage/control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index 5fc0824..240a75f 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -112,7 +112,7 @@ class coverage: missing from execution, and (5), a readable string of missing lines. """ - from coverage.analyzer import CodeAnalyzer + from coverage.parser import CodeParser filename = code_unit.filename ext = os.path.splitext(filename)[1] @@ -128,8 +128,8 @@ class coverage: "No source for code '%s'." % code_unit.filename ) - analyzer = CodeAnalyzer() - statements, excluded, line_map = analyzer.analyze_source( + parser = CodeParser() + statements, excluded, line_map = parser.parse_source( text=source, filename=filename, exclude=self.exclude_re ) -- cgit v1.2.1