lkml.org 
[lkml]   [2020]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 12/33] docs: kernel_abi.py: add a script to parse ABI documentation
So this is separate from the patch series itself in a way, but it brings a
question to mind:

On Wed, 28 Oct 2020 15:23:10 +0100
Mauro Carvalho Chehab <mchehab+huawei@kernel.org> wrote:

> +# We can't assume that six is installed
> +PY3 = sys.version_info[0] == 3
> +PY2 = sys.version_info[0] == 2
> +if PY3:
> + # pylint: disable=C0103, W0622
> + unicode = str
> + basestring = str

I wonder how much longer we really need to support any of:

- Python < 3.n (where n=5 or 6 maybe)
- Sphinx < 1.7 or even some 2.x

We're carrying a certain and growing amount of cruft to handle these
cases. I might start putting together a series to clean this up for 5.11
or so.

jon

\
 
 \ /
  Last update: 2020-10-29 01:34    [W:0.841 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site