You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2019/06/28 17:33:24 UTC

[libcloud] 01/02: Fix script - use correct inspect.ismethod method.

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 49bb3717b9b6f8a5e776133917452ccdb703ab6d
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Jun 28 19:30:50 2019 +0200

    Fix script - use correct inspect.ismethod method.
---
 contrib/generate_provider_feature_matrix_table.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/generate_provider_feature_matrix_table.py b/contrib/generate_provider_feature_matrix_table.py
index 1428410..f74374a 100755
--- a/contrib/generate_provider_feature_matrix_table.py
+++ b/contrib/generate_provider_feature_matrix_table.py
@@ -288,9 +288,9 @@ def generate_providers_table(api):
             continue
 
         driver_methods = dict(inspect.getmembers(cls,
-                                                 predicate=inspect.isfunction))
+                                                 predicate=inspect.ismethod))
         base_methods = dict(inspect.getmembers(driver,
-                                               predicate=inspect.isfunction))
+                                               predicate=inspect.ismethod))
         base_api_methods = BASE_API_METHODS[api]
 
         result[name] = {'name': cls.name, 'website': cls.website,