10000 Start moving over to the new requests semantics. · jsullivanlive/github3.py@58a2278 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58a2278

Browse files
committed
Start moving over to the new requests semantics.
1 parent f6913e3 commit 58a2278

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

github3/git.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,13 @@ def _update_(self, ref):
127127
self._api = ref.get('url')
128128
self._obj = GitObject(ref.get('object'))
129129

130+
@GitHubCore.requires_auth
130131
def delete(self):
131132
"""Delete this reference.
132133
133134
:returns: bool
134135
"""
135-
return self._delete(self._api)
136+
return self._boolean(self._delete(self._api), 204, 404)
136137

137138
@property
138139
def object(self):

0 commit comments

Comments
 (0)
0