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 -9
View File
@@ -28,10 +28,6 @@
# #
################################################################################
from __future__ import absolute_import
import six
import github.GithubObject
@@ -56,16 +52,16 @@ class InputGitTreeElement(object):
:param sha: string or None
"""
assert isinstance(path, (str, six.text_type)), path
assert isinstance(mode, (str, six.text_type)), mode
assert isinstance(type, (str, six.text_type)), type
assert isinstance(path, str), path
assert isinstance(mode, str), mode
assert isinstance(type, str), type
assert content is github.GithubObject.NotSet or isinstance(
content, (str, six.text_type)
content, str
), content
assert (
sha is github.GithubObject.NotSet
or sha is None
or isinstance(sha, (str, six.text_type))
or isinstance(sha, str)
), sha
self.__path = path
self.__mode = mode