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
+1 -1
View File
@@ -85,7 +85,7 @@ class PullRequestPart(github.GithubObject.NonCompletableGithubObject):
self._ref = attributes["ref"]
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 "sha" in attributes: # pragma no branch
assert attributes["sha"] is None or isinstance(attributes["sha"], (str, unicode)), attributes["sha"]
self._sha = attributes["sha"]