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:
Steve Kowalik
2019-12-29 10:49:45 +11:00
committed by GitHub
parent e1537f79bc
commit 88e30057a7
2 changed files with 0 additions and 7 deletions
-3
View File
@@ -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,
)