[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1807191656450.1693@nanos.tec.linutronix.de>
Date: Thu, 19 Jul 2018 16:58:08 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Jeremy Cline <jcline@...hat.com>
cc: LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] scripts: Add Python 3 compatibility to spdxcheck.py
On Tue, 17 Jul 2018, Jeremy Cline wrote:
> "dict.has_key(key)" on dictionaries has been replaced with "key in
> dict". Additionally, when run under Python 3 some files don't decode
> with the default encoding (tested with UTF-8). To handle that, don't
> open the file in text mode and decode text line-by-line, ignoring
> encoding errors.
>
> This remains compatible with Python 2 and should have no functional
> change.
>
> Signed-off-by: Jeremy Cline <jcline@...hat.com>
Acked-by: Thomas Gleixner <tglx@...utronix.de>
Powered by blists - more mailing lists