Remove older MainClass.get_installation() (#1738)

There are two get_installation() methods in MainClass, with different
arguments. get_installation(owner, repo) is documented and tested, and
get_installation(id) is neither. Remove it to avoid confusion.
This commit is contained in:
Steve Kowalik
2020-11-11 18:14:55 +11:00
committed by GitHub
parent 4cfc9912c0
commit 19e46bbf90
-10
View File
@@ -785,16 +785,6 @@ class Github(object):
"""
return self.create_from_raw_data(*pickle.load(f))
def get_installation(self, id):
"""
:param id:
:return:
"""
return Installation.Installation(
self.__requester, headers={}, attributes={"id": id}, completed=True
)
def get_oauth_application(self, client_id, client_secret):
return github.ApplicationOAuth.ApplicationOAuth(
self.__requester,