diff --git a/github/GitignoreTemplate.py b/github/GitignoreTemplate.py index 82b6def9..a1b96d7c 100644 --- a/github/GitignoreTemplate.py +++ b/github/GitignoreTemplate.py @@ -29,11 +29,6 @@ class GitignoreTemplate(github.GithubObject.NonCompletableGithubObject): """ This class represents GitignoreTemplates as returned for example by http://developer.github.com/v3/todo """ - def __init__(self, requester, attributes, completed): - ''' - Adapte for __init__ change, remove later - ''' - github.GithubObject.NonCompletableGithubObject.__init__(self, requester, {}, attributes, completed) @property def source(self): diff --git a/github/MainClass.py b/github/MainClass.py index ff180ef4..4fbe3645 100644 --- a/github/MainClass.py +++ b/github/MainClass.py @@ -308,7 +308,7 @@ class Github(object): None, None ) - return GitignoreTemplate.GitignoreTemplate(self.__requester, attributes, completed=True) + return GitignoreTemplate.GitignoreTemplate(self.__requester, headers, attributes, completed=True) def create_from_raw_data(self, klass, raw_data): """