mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Update Gist.py
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user