Update Repository.py

This commit is contained in:
AKFish
2013-08-21 17:13:03 +08:00
parent 0e842637a6
commit 3c1d17cd64
9 changed files with 18 additions and 17 deletions
+5 -1
View File
@@ -123,10 +123,14 @@ class Event(github.GithubObject.NonCompletableGithubObject):
self._public = attributes["public"]
if "repo" in attributes: # pragma no branch
assert attributes["repo"] is None or isinstance(attributes["repo"], dict), attributes["repo"]
self._repo = None if attributes["repo"] is None else github.Repository.Repository(self._requester, attributes["repo"], completed=False)
self._repo = None if attributes["repo"] is None else github.Repository.Repository(self._requester, self._headers, attributes["repo"], completed=False)
if "type" in attributes: # pragma no branch
assert attributes["type"] is None or isinstance(attributes["type"], (str, unicode)), attributes["type"]
self._type = attributes["type"]