Drop Python 2 support (#1329)

With the Python 2 deadline gone, it's time to move with the times and
switch to Python 3 only.
This commit is contained in:
Steve Kowalik
2020-01-06 18:01:38 +11:00
committed by GitHub
parent 4561930b82
commit b7894ea00c
195 changed files with 434 additions and 1158 deletions
+5 -11
View File
@@ -30,10 +30,6 @@
# #
################################################################################
from __future__ import absolute_import
import six
import github.AuthorizationApplication
import github.GithubObject
@@ -143,19 +139,17 @@ class Authorization(github.GithubObject.CompletableGithubObject):
:rtype: None
"""
assert scopes is github.GithubObject.NotSet or all(
isinstance(element, (str, six.text_type)) for element in scopes
isinstance(element, str) for element in scopes
), scopes
assert add_scopes is github.GithubObject.NotSet or all(
isinstance(element, (str, six.text_type)) for element in add_scopes
isinstance(element, str) for element in add_scopes
), add_scopes
assert remove_scopes is github.GithubObject.NotSet or all(
isinstance(element, (str, six.text_type)) for element in remove_scopes
isinstance(element, str) for element in remove_scopes
), remove_scopes
assert note is github.GithubObject.NotSet or isinstance(
note, (str, six.text_type)
), note
assert note is github.GithubObject.NotSet or isinstance(note, str), note
assert note_url is github.GithubObject.NotSet or isinstance(
note_url, (str, six.text_type)
note_url, str
), note_url
post_parameters = dict()
if scopes is not github.GithubObject.NotSet: