summaryrefslogtreecommitdiff
path: root/pylint/checkers/classes.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-03-20 20:50:18 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-03-20 20:50:18 +0200
commitdb47e6ae3e7f1838d4b38b213514461114d79bab (patch)
tree5ea976e43613d9667104bdf84fc1f99749454edd /pylint/checkers/classes.py
parente0d77b9795a01ae0e98a951ebfa54eb810bda893 (diff)
downloadpylint-db47e6ae3e7f1838d4b38b213514461114d79bab.tar.gz
Promote a couple of warnings to errors.
These warnings were promoted since they could uncover potential bugs in the code and since most people are using `pylint -E` anyway, it's good to have them as errors. These warnings are: assignment-from-none, unbalanced-tuple-unpacking, unpacking-non-sequence, non-iterator-returned. Closes issue #388.
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r--pylint/checkers/classes.py5
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 '