diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-02 15:57:23 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-02 15:57:23 +0100 |
commit | 47e0dc29caa9155654ee5140b65ad8a5cc392e53 (patch) | |
tree | b758ea832f260433b6cec08c391fd5375ff83c2e /checkers/utils.py | |
parent | 2f8feb188c3e16768fa9cd6f700aa4b34902c413 (diff) | |
download | pylint-47e0dc29caa9155654ee5140b65ad8a5cc392e53.tar.gz |
cleanup: we don't support 2.3 anymore
Diffstat (limited to 'checkers/utils.py')
-rw-r--r-- | checkers/utils.py | 7 |
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. |