libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [libcloud] 01/02: Fix script - use correct inspect.ismethod method.
Date Fri, 28 Jun 2019 17:33:24 GMT
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 <tomaz@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,


Mime
View raw message