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
commit9299f7a6b8db4706fe2ee72ffa7c499ba6b1eef4 (patch)
tree038cc8d601173322cb8a2f779d71ecf242668ff8 /pylint/checkers/classes.py
parent5c23103c9b92a51ae4f9f298c563223d51ecae65 (diff)
downloadpylint-git-9299f7a6b8db4706fe2ee72ffa7c499ba6b1eef4.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 87e3bcfeb..fe6d26d91 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 '