Update HookDescription.py.

This commit is contained in:
AKFish
2013-08-21 13:59:08 +08:00
parent 02435f3a9f
commit ac1585ee13
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -30,11 +30,6 @@ class HookDescription(github.GithubObject.NonCompletableGithubObject):
"""
This class represents HookDescriptions 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 events(self):
+1 -1
View File
@@ -281,7 +281,7 @@ class Github(object):
None,
None
)
return [HookDescription.HookDescription(self.__requester, attributes, completed=True) for attributes in data]
return [HookDescription.HookDescription(self.__requester, headers, attributes, completed=True) for attributes in data]
def get_gitignore_templates(self):
"""