Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1313197pxx; Fri, 30 Oct 2020 07:17:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb58VvRXeZRHllMP9fkIu3J8nJrjRQhioAcTV6LbiTJbE75AyBiq91To6owiT+pxvDW1Lu X-Received: by 2002:a05:6402:c8d:: with SMTP id cm13mr899599edb.340.1604067470443; Fri, 30 Oct 2020 07:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604067470; cv=none; d=google.com; s=arc-20160816; b=lqRTzJ/g66BiTj7HTqEL+AM9AayKzcet2K5Qz8jrHosKJf2uSFoyA9/hgAzUwyQIl+ G7YnRbLQCwoZbgEhX1T/V3YbwwVrcfDPN965eFJl9J0A/MFyVHwS8SECTCa/gMyMMJUV Mhni3qXNtFCAjKaj0JUDGtlM8Q2VEYW8yKC+V4wC6/bl8FQop5J7Sf0GI8afMmdpZOu2 oUdWXarbK6pnq9QHVN4R/RfAKrM8CgM34zvBXfrZbnHQPVw1Zuv7shkC4xk1vRFLT7C6 V6GyCLUEhrDvwKjR3U32XgvOZf6Up/c7ktwH/BKhbrXPNA8cu/9a9ITHMwHtfersOWcS 9aig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=rbLUK2KUPIXsbw8rFC+F4fL4KZJZowLCi6vFp0CVn+A=; b=pPvlZmOm5vRbJa25D0WV3Yh6DNnn1FIOJMyfjERohNamUTR7B7ps3DsqqhBMWeUTbk zTVOdqZCqXMt59vaaiYmuFeLa7GKRXbMx/GbZJVlCDtxGVJxcqW12BqdWSOZowIb6+sV VCEkPBua1ai6F2HqYUbu+6QSw2W+L+c1uNOoCFWmveVFeArl39O8/+Swr21WD0DaZEJT To4zHTMbn9zx6VsOIX+JsycX7TZXDoGkL4kRn6YuCxje3XsQeFzSjC02hLoJjAjTiacM +kmgCCHV5aAyOouLXUAtKma83Sb/jgYnDkMf2QIP2GmoICIir+sJoTrOSaNO9mX8jR0b Wkdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=np6IRWXP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si4480242edy.584.2020.10.30.07.17.28; Fri, 30 Oct 2020 07:17:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=np6IRWXP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726731AbgJ3OQE (ORCPT + 99 others); Fri, 30 Oct 2020 10:16:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:56922 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbgJ3OQD (ORCPT ); Fri, 30 Oct 2020 10:16:03 -0400 Received: from coco.lan (ip5f5ad5bb.dynamic.kabel-deutschland.de [95.90.213.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1FDAF2076E; Fri, 30 Oct 2020 14:16:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604067363; bh=0brlscylgaQTxX0ekfO/xD5tY9Q8B9NUREgRnvRyJMk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=np6IRWXPmN0gw/SGabp4bPAVfHdc+yyvXMxAphzV8HwenCqrpQk4jpe4zcAhy4Ate ZOxkatGkxXKVrI0cIl44o9uhCeukJQdGbJzAS4EXXSRAFV+YrAfbqLy8XNNMlY6gO9 Am7XdF4/gd/GwqYbhQacUxlGK2hOLiWfVzlG0Mf8= Date: Fri, 30 Oct 2020 15:15:58 +0100 From: Mauro Carvalho Chehab To: Jonathan Corbet Cc: Dafna Hirschfeld , "=?UTF-8?B?TsOtY29s?= =?UTF-8?B?YXM=?= F. R. A. Prado" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org, andrealmeid@collabora.com Subject: Re: Python 2.7 support and automarkup.py - Was: Re: [PATCH v2 1/5] docs: automarkup.py: Use new C roles in Sphinx 3 Message-ID: <20201030151558.65330bff@coco.lan> In-Reply-To: <20201030081440.47a74dad@lwn.net> References: <20201013231218.2750109-1-nfraprado@protonmail.com> <20201013231218.2750109-2-nfraprado@protonmail.com> <5053e824-625b-5a76-d862-2c855c79c427@collabora.com> <20201030151026.3afd7997@coco.lan> <20201030081440.47a74dad@lwn.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, 30 Oct 2020 08:14:40 -0600 Jonathan Corbet escreveu: > On Fri, 30 Oct 2020 15:10:26 +0100 > Mauro Carvalho Chehab wrote: > > > I see a few alternatives: > > > > 1) fix automarkup.py for it to work again with python 2.7; > > > > 2) conf.py could gain some logic to disable automarkup with > > Python < 3; > > > > 3) scripts/sphinx-pre-install already detects Python version. > > It should likely be easy to ask the user to use python 3.x, > > if an older version is detected. > > > > Doing (1) or (2) will require an additional step when we raise > > the bar for Python version. > > We haven't dropped support for Python 2 yet, so this constitutes a > regression. My own approach would be something like this at the top of > automarkup.py: > > if python2: > ascii = 0 > else: > ascii = re.ASCII > > ...then s/re.ASCII/ascii/ throughout. I can probably put together > something later this morning. Makes sense. > > jon Thanks, Mauro