diff options
author | Jan Safranek <jsafrane@redhat.com> | 2013-01-23 15:45:41 +0100 |
---|---|---|
committer | Jan Safranek <jsafrane@redhat.com> | 2013-01-23 15:45:41 +0100 |
commit | aad492d79c9451dc24391d0b7bef6898046cf854 (patch) | |
tree | 8ffe74827c8aa8f3f7486d618d91d57e3274c03b /tools | |
parent | 0b5ac145d85ede41b7419acfee5ac19cf6f4641a (diff) | |
download | openlmi-providers-aad492d79c9451dc24391d0b7bef6898046cf854.tar.gz openlmi-providers-aad492d79c9451dc24391d0b7bef6898046cf854.tar.xz openlmi-providers-aad492d79c9451dc24391d0b7bef6898046cf854.zip |
Fixed traceback on checking class with constants inside.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pylint/plugins/cim_provider_checker.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pylint/plugins/cim_provider_checker.py b/tools/pylint/plugins/cim_provider_checker.py index e62e62f..8691b5a 100644 --- a/tools/pylint/plugins/cim_provider_checker.py +++ b/tools/pylint/plugins/cim_provider_checker.py @@ -62,6 +62,8 @@ def supress_cim_provider_messages(linter, node): 'delete_instance') # implementation of generated methods may not use all arguments for child in node.get_children(): + if not isinstance(child, scoped_nodes.Function): + continue if (child.name in generated_methods or child.name.startswith('cim_method_')): linter.disable('W0613', scope='module', |