From 30d9d499a1b44552ab9a28ef7317aa2098daafd7 Mon Sep 17 00:00:00 2001 From: AKFish Date: Wed, 21 Aug 2013 17:32:32 +0800 Subject: [PATCH] Clean up --- github/GithubObject.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/github/GithubObject.py b/github/GithubObject.py index 077cc5c2..efc7dcef 100644 --- a/github/GithubObject.py +++ b/github/GithubObject.py @@ -40,6 +40,8 @@ class GithubObject(object): """ def __init__(self, requester, headers, attributes, completed): self._requester = requester + # Make sure headers are signed before any operations on attributes + # Object creatation requires headers as parameter self._headers = headers; self._initAttributes() self._storeAndUseAttributes(attributes) @@ -86,7 +88,6 @@ class NonCompletableGithubObject(GithubObject): class CompletableGithubObject(GithubObject): def __init__(self, requester, headers, attributes, completed): - # Adapte for __init__ change, remove later GithubObject.__init__(self, requester, headers, attributes, completed) self.__completed = completed