summaryrefslogtreecommitdiff
path: root/Documentation/sphinx/rstFlatTable.py
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2021-02-02 03:17:14 +0300
committerJonathan Corbet <corbet@lwn.net>2021-02-02 03:17:14 +0300
commit4217e5074f33d855873370378d427e329b60a7b4 (patch)
tree3186d771136f53250502d43a2301aeef1a90f76b /Documentation/sphinx/rstFlatTable.py
parentf546ff0c0c07969f2892db10f1fe029f841ddf10 (diff)
downloadlinux-4217e5074f33d855873370378d427e329b60a7b4.tar.xz
Docs: drop Python 2 support
The kernel build system as a whole is dropping support for Python 2, so we should do the same. The effects are rather small, especially considering that much of the deleted code was not doing anything under any version of Python anyway. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/sphinx/rstFlatTable.py')
-rwxr-xr-xDocumentation/sphinx/rstFlatTable.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Documentation/sphinx/rstFlatTable.py b/Documentation/sphinx/rstFlatTable.py
index 2019a55f6b18..a3eea0bbe6ba 100755
--- a/Documentation/sphinx/rstFlatTable.py
+++ b/Documentation/sphinx/rstFlatTable.py
@@ -42,8 +42,6 @@ u"""
# imports
# ==============================================================================
-import sys
-
from docutils import nodes
from docutils.parsers.rst import directives, roles
from docutils.parsers.rst.directives.tables import Table
@@ -55,14 +53,6 @@ from docutils.utils import SystemMessagePropagation
__version__ = '1.0'
-PY3 = sys.version_info[0] == 3
-PY2 = sys.version_info[0] == 2
-
-if PY3:
- # pylint: disable=C0103, W0622
- unicode = str
- basestring = str
-
# ==============================================================================
def setup(app):
# ==============================================================================