From c2dd9452eabc70bf88fc4769e48df63c0de8ce8a Mon Sep 17 00:00:00 2001 From: AKFish Date: Wed, 21 Aug 2013 13:18:29 +0800 Subject: [PATCH] Update Gist.py --- github/Gist.py | 2 +- github/GistFile.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/github/Gist.py b/github/Gist.py index 66866a81..ed6aa37f 100644 --- a/github/Gist.py +++ b/github/Gist.py @@ -317,7 +317,7 @@ class Gist(github.GithubObject.CompletableGithubObject): if "files" in attributes: # pragma no branch assert attributes["files"] is None or all(isinstance(element, dict) for element in attributes["files"].itervalues()), attributes["files"] self._files = None if attributes["files"] is None else dict( - (key, github.GistFile.GistFile(self._requester, element, completed=False)) + (key, github.GistFile.GistFile(self._requester, self._headers, element, completed=False)) for key, element in attributes["files"].iteritems() ) if "fork_of" in attributes: # pragma no branch diff --git a/github/GistFile.py b/github/GistFile.py index 458fd87e..a153c7ba 100644 --- a/github/GistFile.py +++ b/github/GistFile.py @@ -30,11 +30,6 @@ class GistFile(github.GithubObject.NonCompletableGithubObject): """ This class represents GistFiles 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 content(self):