Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #22 from OlegKorchagin/backward-compatibility-with…
Browse files Browse the repository at this point in the history
…-python2.7

backward compatibility with python2.7 ; see https://stackoverflow.com…
  • Loading branch information
m0nhawk authored Apr 28, 2019
2 parents 52037ae + d13e770 commit 76e7f7b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion grafana_api/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion grafana_api/api/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion grafana_api/api/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion grafana_api/api/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions grafana_api/api/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion grafana_api/api/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions grafana_api/api/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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'

Expand Down

0 comments on commit 76e7f7b

Please sign in to comment.