Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit92e9715

Browse files
committed
1 parent8951195 commit92e9715

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-
returnself._boolean(self._put(url,headers=headers),204,404)
265+
returnself._boolean(self._put(url),204,404)
273266

274267
defpull_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-
returnself._boolean(self._delete(url,headers=headers),204,404)
331+
returnself._boolean(self._delete(url),204,404)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp