mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user