mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Update GitignoreTemplate.py
This commit is contained in:
@@ -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
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user