diff options
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r-- | pylint/checkers/classes.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py index 87e3bcf..fe6d26d 100644 --- a/pylint/checkers/classes.py +++ b/pylint/checkers/classes.py @@ -210,10 +210,11 @@ MSGS = { 'non-parent-init-called', 'Used when an __init__ method is called on a class which is not ' 'in the direct ancestors for the analysed class.'), - 'W0234': ('__iter__ returns non-iterator', + 'E0234': ('__iter__ returns non-iterator', 'non-iterator-returned', 'Used when an __iter__ method returns something which is not an ' - 'iterable (i.e. has no `%s` method)' % NEXT_METHOD), + 'iterable (i.e. has no `%s` method)' % NEXT_METHOD, + {'old_names': [('W0234', 'non-iterator-returned')]}), 'E0235': ('__exit__ must accept 3 arguments: type, value, traceback', 'bad-context-manager', 'Used when the __exit__ special method, belonging to a ' |