Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp98460ybe; Thu, 5 Sep 2019 18:11:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwddtiJrVTh0Dl5qKk4osRjWZq+nZKxJryL1OvL0VXC90fg/Ab4w9+dnE9MkG/dU6VKqCUS X-Received: by 2002:aa7:8251:: with SMTP id e17mr7579024pfn.189.1567732311481; Thu, 05 Sep 2019 18:11:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567732311; cv=none; d=google.com; s=arc-20160816; b=rFWZKxouDDwdqd1pce60vZRc0iK3nQrypqe/OOv0OXDVq5+KBGlRhcoD48uOGL5oVQ pZ/jol5FtVLCXLDztr1BLA3wCWfYkXUNVnkmOeeIN0AVeaFZbclv+1yD225fOaDfmBSL 4Y10bH9DCa2ZRI7N7/AbB2myTeKouJXhUFPnEdNLWpY0sb3v74jXL663Pz1pQO4E5Xg0 0FygR7R38p7M+Xe10Qs+X8AJ19IIPSEx9evtjpFXeMUIJr4zfvrk/cweSX+a31Wnm1NV 8ghEa/hi//8ifcQP6BbOZCc2/IntOM2gC0N+A4Vsij9m0AGIXr7aN94W2iO/UphZinyK wZTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=MjKdVNiFjOdZvdwokVehwJ0c/QLPeMEzqUmQ6koohg0=; b=T+BIeO6BaP/+ID1UnxVXmCyZzBugM3s4dU3MmxvHcENv3kDpEhnin9I23mgfsHtPu8 FhqQGJ37Cjbtibz4p+0PfnveY53j4Xb/q5K/ckD0Kj4mjJWbdwYIGZN9D8X4paRgvGEb Yauoqr1CPTNFRVjHs6bQU7u3z+fqHDApFmCifFYKPhu5737Kn0dF3ER51v/bgnGHr+Gh Cmmmby3npWgpIRs6hO0civOWRqmNhwnnMVLnBfSFduiUshg0S/9ydxcLLuIg3AyUq52f eboKp5VcEoiSL8QDWPED53Vs6kdj/vkd2o65EFKhx1tICCzstvMFpjCCPSWFJ2JFjpMk 9xEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=TP+HPDqb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si3380749pjv.81.2019.09.05.18.11.17; Thu, 05 Sep 2019 18:11:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=TP+HPDqb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390958AbfIERKw (ORCPT + 99 others); Thu, 5 Sep 2019 13:10:52 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38202 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389559AbfIERKw (ORCPT ); Thu, 5 Sep 2019 13:10:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MjKdVNiFjOdZvdwokVehwJ0c/QLPeMEzqUmQ6koohg0=; b=TP+HPDqbKM126/TJ1UiGl4y8r GpMofqJxAwlaV7rYqLqTqswSp0aCoyLge2iul1chQJTRNXmGlJfx/FV+9cNyV//XEELyYh/fZxki4 BLR0FKBg8SAZkcbR6Sp/wBCHCLEWzUQXX+IBGlaEGm9QYPAu5oZgW+AkmZD16wyeYsnOyN2nvud0Q F7X3jrdIEsqNwvK/aTeBvWNJ7DyNjsgNJ1XpkD9+Z3hvwobjk2igzTXMvtHJ1kx+cDDI1V6kvW4h2 bnmCVuO2YVn6ST/HzlSnGmOFhUMyWwTFzLXUmbJyQOW+PW/sunv2QxzN0ilG5yx2kxeLGg+htCZ4Z 4b73YB87w==; Received: from [177.159.253.249] (helo=coco.lan) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i5vHW-0008Gt-I4; Thu, 05 Sep 2019 17:10:51 +0000 Date: Thu, 5 Sep 2019 14:10:44 -0300 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: Jonathan Corbet , Linux Media Mailing List , Mauro Carvalho Chehab , Joe Perches , linux-kernel@vger.kernel.org, Jessica Yu , Federico Vaga , Thomas Gleixner , linux-doc@vger.kernel.org Subject: Re: [PATCH] docs: license-rules.txt: cover SPDX headers on Python scripts Message-ID: <20190905141044.4eb3a622@coco.lan> In-Reply-To: <20190905141723.GB25790@kroah.com> References: <20190905055614.7958918b@coco.lan> <88e638eb959095ab6657d295f9f8c27169569bf2.1567675272.git.mchehab+samsung@kernel.org> <20190905065701.4744e66a@lwn.net> <20190905141723.GB25790@kroah.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, 5 Sep 2019 16:17:23 +0200 Greg Kroah-Hartman escreveu: > On Thu, Sep 05, 2019 at 06:57:01AM -0600, Jonathan Corbet wrote: > > On Thu, 5 Sep 2019 06:23:13 -0300 > > Mauro Carvalho Chehab wrote: > > > > > Python's PEP-263 [1] dictates that an script that needs to default to > > > UTF-8 encoding has to follow this rule: > > > > > > 'Python will default to ASCII as standard encoding if no other > > > encoding hints are given. > > > > > > To define a source code encoding, a magic comment must be placed > > > into the source files either as first or second line in the file' > > > > So this is only Python 2, right? Well, Debian 10 (buster) was launched this year, and still comes with python2 (with is the default): $ ls -la /usr/bin/python lrwxrwxrwx 1 root root 7 Mar 4 2019 /usr/bin/python -> python2 I think Debian devs will keep it maintained for a while, as this is a LTS distro. > > Python 3 is UTF8 by default. Given that > > Python 2 is EOL in January, is this something we should be concerned > > about? Or should we instead be making sure that all the Python we have > > in-tree works properly with Python 3 and be done with it? > > I recommend just using python 3 everywhere and be done with it as there > are already many distros that default to that already. Then we need to change the scripts, as they're currently pointing to /usr/bin/python instead of /usr/bin/python3. At least on the distros I use myself, this doesn't point to /etc/alternates. Instead, it is just an alias to python2. Thanks, Mauro