diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2006-11-21 14:25:18 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2006-11-21 14:25:18 +0100 |
commit | c28e070fad6477c1c1ee617fea4e3e4bb97c1620 (patch) | |
tree | d8254700ffbf3c8608813456f85dc9a9934115cb /checkers | |
parent | 7b4d9c2d493a7b5edd2e8cf948c6f5fbf00e823e (diff) | |
download | pylint-git-c28e070fad6477c1c1ee617fea4e3e4bb97c1620.tar.gz |
fix W0233 bug
Diffstat (limited to 'checkers')
-rw-r--r-- | checkers/classes.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/checkers/classes.py b/checkers/classes.py index 56bd48e29..d82362928 100644 --- a/checkers/classes.py +++ b/checkers/classes.py @@ -17,8 +17,6 @@ """ from __future__ import generators -__revision__ = "$Id: classes.py,v 1.77 2006-03-05 14:39:37 syt Exp $" - from logilab import astng from pylint.interfaces import IASTNGChecker @@ -417,7 +415,7 @@ instance attributes.'} implements = astng.Instance(node).getattr('__implements__')[0] assignment = implements.parent assert isinstance(assignment, astng.Assign) - # assignment.expr can be a Name or a Tupe or whatever. + # assignment.expr can be a Name or a Tuple or whatever. # Use as_string() for the message # FIXME: in case of multiple interfaces, find which one could not # be resolved @@ -442,6 +440,8 @@ instance attributes.'} return try: klass = expr.expr.infer().next() + if klass is astng.YES: + continue try: del to_call[klass] except KeyError: |