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
+2 -8
View File
@@ -34,10 +34,6 @@
# #
################################################################################
from __future__ import absolute_import
import six
import github.GithubObject
import github.NamedUser
@@ -185,7 +181,7 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
:param body: string
:rtype: None
"""
assert isinstance(body, (str, six.text_type)), body
assert isinstance(body, str), body
post_parameters = {
"body": body,
}
@@ -215,9 +211,7 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
:param reaction_type: string
:rtype: :class:`github.Reaction.Reaction`
"""
assert isinstance(
reaction_type, (str, six.text_type)
), "reaction type should be a string"
assert isinstance(reaction_type, str), "reaction type should be a string"
assert reaction_type in [
"+1",
"-1",