mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Refactor common header constants and custom media type
This commit is contained in:
+3
-1
@@ -35,6 +35,8 @@ import urllib
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
import Consts
|
||||
|
||||
|
||||
class Label(github.GithubObject.CompletableGithubObject):
|
||||
"""
|
||||
@@ -107,7 +109,7 @@ class Label(github.GithubObject.CompletableGithubObject):
|
||||
"PATCH",
|
||||
self.url,
|
||||
input=post_parameters,
|
||||
headers={'Accept': 'application/vnd.github.symmetra-preview+json'}
|
||||
headers={'Accept': Consts.mediaTypeLabelDescriptionSearchPreview}
|
||||
)
|
||||
self._useAttributes(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user