summaryrefslogtreecommitdiff
path: root/pylint/extensions
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-08-26 22:09:27 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2015-08-26 22:09:27 +0300
commit596acc38bc6187dd7c3e05dffa0164f7d9b87dc8 (patch)
tree88256ac8aa8c38a3b6a36d2da9e3b9b154ffb3fe /pylint/extensions
parent90755257e2a2c1a9b45b1a7e5470eef760fe6a90 (diff)
downloadpylint-596acc38bc6187dd7c3e05dffa0164f7d9b87dc8.tar.gz
Use the new node names for the visit and leave methods
Also, emit a PendingDeprecationWarning if the old names are still used, this support being removed in pylint 2.0.
Diffstat (limited to 'pylint/extensions')
-rw-r--r--pylint/extensions/check_docs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/extensions/check_docs.py b/pylint/extensions/check_docs.py
index 60eb81c..fc014f4 100644
--- a/pylint/extensions/check_docs.py
+++ b/pylint/extensions/check_docs.py
@@ -69,7 +69,7 @@ class ParamDocChecker(BaseChecker):
constructor_names = set(["__init__", "__new__"])
- def visit_function(self, node):
+ def visit_functiondef(self, node):
"""Called for function and method definitions (def).
:param node: Node for a function or method definition in the AST