summaryrefslogtreecommitdiff
path: root/checkers/utils.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-12-02 15:57:23 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-12-02 15:57:23 +0100
commit47e0dc29caa9155654ee5140b65ad8a5cc392e53 (patch)
treeb758ea832f260433b6cec08c391fd5375ff83c2e /checkers/utils.py
parent2f8feb188c3e16768fa9cd6f700aa4b34902c413 (diff)
downloadpylint-47e0dc29caa9155654ee5140b65ad8a5cc392e53.tar.gz
cleanup: we don't support 2.3 anymore
Diffstat (limited to 'checkers/utils.py')
-rw-r--r--checkers/utils.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/checkers/utils.py b/checkers/utils.py
index 8f02ac0..94ac8b0 100644
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -22,12 +22,7 @@ from logilab import astng
from logilab.common.compat import builtins
BUILTINS_NAME = builtins.__name__
-try:
- # python >= 2.4
- COMP_NODE_TYPES = (astng.ListComp, astng.SetComp, astng.DictComp,
- astng.GenExpr)
-except AttributeError:
- COMP_NODE_TYPES = astng.ListComp
+COMP_NODE_TYPES = astng.ListComp, astng.SetComp, astng.DictComp, astng.GenExpr
def safe_infer(node):
"""return the inferred value for the given node.