From d13e7702ec5df49b97325e3d97d533d4b90006f1 Mon Sep 17 00:00:00 2001 From: router Date: Sun, 28 Apr 2019 17:21:49 +0300 Subject: [PATCH] backward compatibility with python2.7 ; see https://stackoverflow.com/questions/38963018 --- grafana_api/api/admin.py | 2 +- grafana_api/api/dashboard.py | 2 +- grafana_api/api/datasource.py | 2 +- grafana_api/api/folder.py | 2 +- grafana_api/api/organization.py | 4 ++-- grafana_api/api/search.py | 2 +- grafana_api/api/user.py | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/grafana_api/api/admin.py b/grafana_api/api/admin.py index 5f6f49a..695816a 100644 --- a/grafana_api/api/admin.py +++ b/grafana_api/api/admin.py @@ -3,7 +3,7 @@ class Admin(Base): def __init__(self, api): - super().__init__(api) + super(Admin, self).__init__(api) self.api = api def settings(self): diff --git a/grafana_api/api/dashboard.py b/grafana_api/api/dashboard.py index ed7aa28..40b8646 100644 --- a/grafana_api/api/dashboard.py +++ b/grafana_api/api/dashboard.py @@ -3,7 +3,7 @@ class Dashboard(Base): def __init__(self, api): - super().__init__(api) + super(Dashboard,self).__init__(api) self.api = api def get_dashboard(self, dashboard_uid): diff --git a/grafana_api/api/datasource.py b/grafana_api/api/datasource.py index dc69d78..bc6e21c 100644 --- a/grafana_api/api/datasource.py +++ b/grafana_api/api/datasource.py @@ -3,7 +3,7 @@ class Datasource(Base): def __init__(self, api): - super().__init__(api) + super(Datasource,self).__init__(api) self.api = api def find_datasource(self, datasource_name): diff --git a/grafana_api/api/folder.py b/grafana_api/api/folder.py index 23d5a0d..3ab66f1 100644 --- a/grafana_api/api/folder.py +++ b/grafana_api/api/folder.py @@ -3,7 +3,7 @@ class Folder(Base): def __init__(self, api): - super().__init__(api) + super(Folder,self).__init__(api) self.api = api def get_all_folders(self): diff --git a/grafana_api/api/organization.py b/grafana_api/api/organization.py index 743b433..f2a7c21 100644 --- a/grafana_api/api/organization.py +++ b/grafana_api/api/organization.py @@ -3,7 +3,7 @@ class Organization(Base): def __init__(self, api): - super().__init__(api) + super(Organization,self).__init__(api) self.api = api def find_organization(self, org_name): @@ -88,7 +88,7 @@ def delete_user_current_organization(self, user_id): class Organizations(Base): def __init__(self, api): - super().__init__(api) + super(Organizations,self).__init__(api) self.api = api self.path = '/users' diff --git a/grafana_api/api/search.py b/grafana_api/api/search.py index 019024c..ac3519a 100644 --- a/grafana_api/api/search.py +++ b/grafana_api/api/search.py @@ -3,7 +3,7 @@ class Search(Base): def __init__(self, api): - super().__init__(api) + super(Search,self).__init__(api) self.api = api def search_dashboards(self, query=None, tag=None, type_=None, dashboard_ids=None, folder_ids=None, starred=None, diff --git a/grafana_api/api/user.py b/grafana_api/api/user.py index abbfb8b..bb87fe5 100644 --- a/grafana_api/api/user.py +++ b/grafana_api/api/user.py @@ -3,7 +3,7 @@ class Users(Base): def __init__(self, api): - super().__init__(api) + super(Users,self).__init__(api) self.api = api def search_users(self, query=None, page=None, perpage=None): @@ -88,7 +88,7 @@ def get_user_organisations(self, user_id): class User(Base): def __init__(self, api): - super().__init__(api) + super(User,self).__init__(api) self.api = api self.path = '/user'