8000 Remove headers needed for issue preview · goodwillcoding/github3.py@92e9715 · GitHub
[go: up one dir, main page]

Skip to content

Commit 92e9715

Browse files
committed
1 parent 8951195 commit 92e9715

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

github3/issues/issue.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ class Issue(GitHubCore):
3131
3232
"""
3333

34-
# The Accept header will likely be removable once the feature is out of
35-
# preview mode. See: https://git.io/vgXmB
36-
LOCKING_PREVIEW_HEADERS = {
37-
'Accept': 'application/vnd.github.the-key-preview+json'
38-
}
39-
4034
def _update_attributes(self, issue):
4135
self._api = issue.get('url', '')
4236
#: :class:`User <github3.users.User>` representing the user the issue
@@ -266,10 +260,9 @@ def lock(self):
266260
267261
:returns: bool
268262
"""
269-
headers = Issue.LOCKING_PREVIEW_HEADERS
270263

271264
url = self._build_url('lock', base_url=self._api)
272-
return self._boolean(self._put(url, headers=headers), 204, 404)
265+
return self._boolean(self._put(url), 204, 404)
273266

274267
def pull_request(self):
275268
"""Retrieve the pull request associated with this issue.
@@ -333,7 +326,6 @@ def unlock(self):
333326
334327
:returns: bool
335328
"""
336-
headers = Issue.LOCKING_PREVIEW_HEADERS
337329

338330
url = self._build_url('lock', base_url=self._api)
339-
return self._boolean(self._delete(url, headers=headers), 204, 404)
331+
return self._boolean(self._delete(url), 204, 404)

0 commit comments

Comments
 (0)
0