diff options
author | syt <syt@localhost.localdomain> | 2006-11-21 14:25:18 +0100 |
---|---|---|
committer | syt <syt@localhost.localdomain> | 2006-11-21 14:25:18 +0100 |
commit | 0dd4297fbfddbe58db5f57d4b3d716f5227f34e5 (patch) | |
tree | d8254700ffbf3c8608813456f85dc9a9934115cb /checkers/classes.py | |
parent | c6daea7d1c28496c7345ca43b4a327f2e5841da1 (diff) | |
download | pylint-0dd4297fbfddbe58db5f57d4b3d716f5227f34e5.tar.gz |
fix W0233 bug
Diffstat (limited to 'checkers/classes.py')
-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 56bd48e..d823629 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: |