8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0681dce commit 7d1de6eCopy full SHA for 7d1de6e
github3/gists/gist.py
@@ -114,7 +114,7 @@ def create_comment(self, body):
114
if body:
115
url = self._build_url('comments', base_url=self._api)
116
json = self._json(self._post(url, data={'body': body}), 201)
117
- return GistComment(json, self) if json else None
+ return self._instance_or_null(GistComment, json)
118
119
@requires_auth
120
def delete(self):
@@ -160,7 +160,7 @@ def fork(self):
160
"""
161
url = self._build_url('forks', base_url=self._api)
162
json = self._json(self._post(url), 201)
163
- return Gist(json, self) if json else None
+ return self._instance_or_null(Gist, json)
164
165
166
def is_starred(self):
0 commit comments