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:
+1
-5
@@ -22,10 +22,6 @@
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import six
|
||||
|
||||
import github.GithubObject
|
||||
import github.ProjectColumn
|
||||
|
||||
@@ -163,7 +159,7 @@ class Project(github.GithubObject.CompletableGithubObject):
|
||||
calls: `POST https://developer.github.com/v3/projects/columns/#create-a-project-column>`_
|
||||
:param name: string
|
||||
"""
|
||||
assert isinstance(name, (str, six.text_type)), name
|
||||
assert isinstance(name, str), name
|
||||
post_parameters = {"name": name}
|
||||
import_header = {"Accept": Consts.mediaTypeProjectsPreview}
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
|
||||
Reference in New Issue
Block a user