diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-12-22 23:41:57 +0100 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-12-22 23:41:57 +0100 |
commit | d8895fcb65ecd958b627298b32b0592565ef137e (patch) | |
tree | 57cdbc1a28493d1f131fa2b4a8a3ff6611c7fa2b /checkers/classes.py | |
parent | d3f5227f8903cf72d7de78d0c2a9fc2948b19ca9 (diff) | |
download | pylint-d8895fcb65ecd958b627298b32b0592565ef137e.tar.gz |
various pylint fixes
Diffstat (limited to 'checkers/classes.py')
-rw-r--r-- | checkers/classes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/checkers/classes.py b/checkers/classes.py index fd76146..fc09021 100644 --- a/checkers/classes.py +++ b/checkers/classes.py @@ -1,4 +1,4 @@ -# Copyright (c) 2003-2012 LOGILAB S.A. (Paris, FRANCE). +# Copyright (c) 2003-2013 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This program is free software; you can redistribute it and/or modify it under @@ -183,7 +183,7 @@ class ClassChecker(BaseChecker): options = (('ignore-iface-methods', {'default' : (#zope interface 'isImplementedBy', 'deferred', 'extends', 'names', - 'namesAndDescriptions', 'queryDescriptionFor', 'getBases', + 'namesAndDescriptions', 'queryDescriptionFor', 'getBases', 'getDescriptionFor', 'getDoc', 'getName', 'getTaggedValue', 'getTaggedValueTags', 'isEqualOrExtendedBy', 'setTaggedValue', 'isImplementedByInstancesOf', @@ -355,10 +355,10 @@ a metaclass class method.'} positional = sum(1 for arg in node.args.args if arg.name != 'self') if positional < 3 and not node.args.vararg: self.add_message('bad-context-manager', - node=node) + node=node) elif positional > 3: self.add_message('bad-context-manager', - node=node) + node=node) def leave_function(self, node): """on method node, check if this method couldn't be a function |