diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-12-24 16:56:26 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-12-24 16:56:26 -0500 |
commit | 644f3dadc645f970fbaf80bf91aceb809c02d1a2 (patch) | |
tree | 1e43d1b3cac85c74f7306ab74a019aea6a1f35f3 /coverage/parser.py | |
parent | c26454501b5667643324556475ad45ebffcc3539 (diff) | |
download | python-coveragepy-git-644f3dadc645f970fbaf80bf91aceb809c02d1a2.tar.gz |
2.6 and 2.7 are not different wrt constants in while loops
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index e027b41b..540ad098 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 |