mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Remove API preview parameter (#1325)
The API preview flag for both MainClass and Requester was the last hard-coded custom header, and it seems to not be relevant since mid-2015. Remove it, if any users are using it, they shouldn't be. Its code path was also entirely untested.
This commit is contained in:
@@ -104,7 +104,6 @@ class Github(object):
|
||||
client_secret=None,
|
||||
user_agent="PyGithub/Python",
|
||||
per_page=DEFAULT_PER_PAGE,
|
||||
api_preview=False,
|
||||
verify=True,
|
||||
retry=None,
|
||||
):
|
||||
@@ -137,7 +136,6 @@ class Github(object):
|
||||
assert user_agent is None or isinstance(
|
||||
user_agent, (str, six.text_type)
|
||||
), user_agent
|
||||
assert isinstance(api_preview, (bool))
|
||||
assert (
|
||||
retry is None
|
||||
or isinstance(retry, (int))
|
||||
@@ -153,7 +151,6 @@ class Github(object):
|
||||
client_secret,
|
||||
user_agent,
|
||||
per_page,
|
||||
api_preview,
|
||||
verify,
|
||||
retry,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user