diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-08-26 22:09:27 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-08-26 22:09:27 +0300 |
commit | a1b3c9623afe3c5993d183ec9e6d1baceb7cc3ae (patch) | |
tree | f6bbd572abdb6695db5c051ec180486184d0e9b4 /pylint/extensions/check_docs.py | |
parent | 1746fce4e595f4b20982892dc6e6a0bd13556597 (diff) | |
download | pylint-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.py | 2 |
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 |