From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0111C388F7 for ; Thu, 29 Oct 2020 00:35:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B106B20790 for ; Thu, 29 Oct 2020 00:35:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731973AbgJ1WTb (ORCPT ); Wed, 28 Oct 2020 18:19:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732158AbgJ1WR5 (ORCPT ); Wed, 28 Oct 2020 18:17:57 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46B69C0613CF; Wed, 28 Oct 2020 15:17:57 -0700 (PDT) Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 2F34E49B; Wed, 28 Oct 2020 16:21:04 +0000 (UTC) Date: Wed, 28 Oct 2020 10:21:03 -0600 From: Jonathan Corbet To: Mauro Carvalho Chehab Cc: Linux Doc Mailing List , Greg Kroah-Hartman , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: Re: [PATCH 12/33] docs: kernel_abi.py: add a script to parse ABI documentation Message-ID: <20201028102103.35884c91@lwn.net> In-Reply-To: References: Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org 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 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