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 | 601204cb27420d35446e9ad07eb25944d120849b (patch) | |
| tree | 520ae2adc69a84d21b45aabf3766f1c09a364a06 /coverage | |
| parent | 4bc7d3fc0a5ab9d778bd08a276aee7315ca70919 (diff) | |
| download | python-coveragepy-601204cb27420d35446e9ad07eb25944d120849b.tar.gz | |
2.6 and 2.7 are not different wrt constants in while loops
Diffstat (limited to 'coverage')
| -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 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 |
