summaryrefslogtreecommitdiff
path: root/checkers/utils.py
diff options
context:
space:
mode:
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.