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 -6
View File
@@ -28,10 +28,6 @@
# #
################################################################################
from __future__ import absolute_import
import six
import github.GithubObject
@@ -46,9 +42,9 @@ class InputFileContent(object):
:param new_name: string
"""
assert isinstance(content, (str, six.text_type)), content
assert isinstance(content, str), content
assert new_name is github.GithubObject.NotSet or isinstance(
new_name, (str, six.text_type)
new_name, str
), new_name
self.__newName = new_name
self.__content = content