From 442b284ef5cb3a28f7b307b5524c36b99df05b73 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 16 Jan 2017 06:29:27 -0500 Subject: Slight AST_DUMP improvements --- coverage/parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coverage/parser.py') diff --git a/coverage/parser.py b/coverage/parser.py index 54603bf3..6bcda9ca 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -490,7 +490,7 @@ new_contract('ArcStarts', lambda seq: all(isinstance(x, ArcStart) for x in seq)) # Turn on AST dumps with an environment variable. -AST_DUMP = bool(int(os.environ.get("COVERAGE_ASTDUMP", 0))) +AST_DUMP = bool(int(os.environ.get("COVERAGE_AST_DUMP", 0))) class AstArcAnalyzer(object): """Analyze source text with an AST to find executable code paths.""" @@ -504,8 +504,8 @@ class AstArcAnalyzer(object): if AST_DUMP: # pragma: debugging # Dump the AST so that failing tests have helpful output. - print("Statements: {}".format(self.statements)) - print("Multiline map: {}".format(self.multiline)) + print("Statements: {0}".format(self.statements)) + print("Multiline map: {0}".format(self.multiline)) ast_dump(self.root_node) self.arcs = set() -- cgit v1.2.1