summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorƁukasz Rogalski <rogalski.91@gmail.com>2017-05-22 14:43:35 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2017-05-22 14:43:35 +0200
commitb95d334aff89dad4a6d51990244686cddbdc3733 (patch)
tree0abee52f8c18ec8b8a1afeb81be11061346de46b /examples
parentd03b949b64ed2d4755c556a4cabb6f5acc70487b (diff)
downloadpylint-git-b95d334aff89dad4a6d51990244686cddbdc3733.tar.gz
Remove mentions of deprecated astroid node names (#1485)
Diffstat (limited to 'examples')
-rw-r--r--examples/custom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/custom.py b/examples/custom.py
index 2182b776e..ee4ed65cf 100644
--- a/examples/custom.py
+++ b/examples/custom.py
@@ -20,11 +20,11 @@ class MyAstroidChecker(BaseChecker):
# this is important so that your checker is executed before others
priority = -1
- def visit_callfunc(self, node):
- """called when a CallFunc node is encountered.
+ def visit_call(self, node):
+ """called when a Call node is encountered.
See astroid for the description of available nodes."""
- if not (isinstance(node.func, astroid.Getattr)
+ if not (isinstance(node.func, astroid.Attribute)
and isinstance(node.func.expr, astroid.Name)
and node.func.expr.name == 'properties'
and node.func.attrname == 'create'):