From fd9b1e460826789468e4a8b0986aad074615587b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 24 Dec 2016 15:21:25 -0500 Subject: Move the test program into the test --- coverage/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/parser.py') diff --git a/coverage/parser.py b/coverage/parser.py index e2708519..e027b41b 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -646,7 +646,7 @@ class AstArcAnalyzer(object): if node_name in ["NameConstant", "Num"]: return "Num" elif node_name == "Name": - if (( env.PY3 or env.PYVERSION >= (2, 7)) and + if ((env.PY3 or env.PYVERSION >= (2, 7)) and node.id in ["True", "False", "None"]): return "Name" return None -- cgit v1.2.1