Update GitignoreTemplate.py

This commit is contained in:
AKFish
2013-08-21 13:23:21 +08:00
parent 4f1e05200d
commit 0879cbb6ff
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -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):
+1 -1
View File
@@ -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):
"""