pylint: Adjust custom checkers for astroid 1.4.

Otherwise we'd run into https://bitbucket.org/logilab/pylint/issues/711
This commit is contained in:
Florian Bruhin 2015-12-01 07:09:46 +01:00
parent a42d99a8b7
commit 101f81844c
3 changed files with 6 additions and 6 deletions

View File

@ -47,8 +47,8 @@ class ConfigChecker(checkers.BaseChecker):
priority = -1
@utils.check_messages('bad-config-call')
def visit_callfunc(self, node):
"""Visit a CallFunc node."""
def visit_call(self, node):
"""Visit a Call node."""
if hasattr(node, 'func'):
infer = utils.safe_infer(node.func)
if infer and infer.root().name == 'qutebrowser.config.config':

View File

@ -37,8 +37,8 @@ class OpenEncodingChecker(checkers.BaseChecker):
}
@utils.check_messages('open-without-encoding')
def visit_callfunc(self, node):
"""Visit a CallFunc node."""
def visit_call(self, node):
"""Visit a Call node."""
if hasattr(node, 'func'):
infer = utils.safe_infer(node.func)
if infer and infer.root().name == '_io':

View File

@ -35,8 +35,8 @@ class SetTraceChecker(BaseChecker):
priority = -1
@utils.check_messages('set-trace')
def visit_callfunc(self, node):
"""Visit a CallFunc node."""
def visit_call(self, node):
"""Visit a Call node."""
if hasattr(node, 'func'):
infer = utils.safe_infer(node.func)
if infer: