From cfbe7fb0b0e8f72f8725e48a4155ab0338d9773f Mon Sep 17 00:00:00 2001 From: AKFish Date: Wed, 21 Aug 2013 11:21:15 +0800 Subject: [PATCH] Change GithubObject.__init__ without breaking build. --- github/GithubObject.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/github/GithubObject.py b/github/GithubObject.py index 8178d8e7..ba1feba7 100644 --- a/github/GithubObject.py +++ b/github/GithubObject.py @@ -38,8 +38,9 @@ class GithubObject(object): """ Base class for all classes representing objects returned by the API. """ - def __init__(self, requester, attributes, completed): + def __init__(self, requester, headers, attributes, completed): self._requester = requester + self._headers = headers; self._initAttributes() self._storeAndUseAttributes(attributes) @@ -79,13 +80,18 @@ class GithubObject(object): class NonCompletableGithubObject(GithubObject): + def __init__(self, requester, attributes, completed): + ''' + Adapte for __init__ change, remove later + ''' + GithubObject.__init__(self, requester, {}, attributes, completed) def _completeIfNeeded(self): pass class CompletableGithubObject(GithubObject): def __init__(self, requester, attributes, completed): - GithubObject.__init__(self, requester, attributes, completed) + GithubObject.__init__(self, requester, {}, attributes, completed) self.__completed = completed def _completeIfNotSet(self, value):