summaryrefslogtreecommitdiff
path: root/pylint/extensions/check_docs.py
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
commita1b3c9623afe3c5993d183ec9e6d1baceb7cc3ae (patch)
treef6bbd572abdb6695db5c051ec180486184d0e9b4 /pylint/extensions/check_docs.py
parent1746fce4e595f4b20982892dc6e6a0bd13556597 (diff)
downloadpylint-git-a1b3c9623afe3c5993d183ec9e6d1baceb7cc3ae.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/check_docs.py')
-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 60eb81c48..fc014f402 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