From 601204cb27420d35446e9ad07eb25944d120849b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 24 Dec 2016 16:56:26 -0500 Subject: 2.6 and 2.7 are not different wrt constants in while loops --- coverage/parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'coverage/parser.py') diff --git a/coverage/parser.py b/coverage/parser.py index e027b41..540ad09 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -646,8 +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 - node.id in ["True", "False", "None"]): + if node.id in ["True", "False", "None"]: return "Name" return None -- cgit v1.2.1