mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user