Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1792196imm; Thu, 19 Jul 2018 07:59:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcUJJT1ioriJuF7lVkixyGmE27VRpUzEUwnqVpGcG3IjzjirBEfvwycL6txQ975hCo7iyy5 X-Received: by 2002:a62:3d41:: with SMTP id k62-v6mr9899288pfa.35.1532012349145; Thu, 19 Jul 2018 07:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532012349; cv=none; d=google.com; s=arc-20160816; b=ZHSfb2f8nCdvGJOrGXT2yD2+1JQ1okcQqhooQQu+wnFl7pTw10I4oRzXN6bQkzJ0oD Dcs97pyfSr8K/NIL5AMuG3n0nUaDXLOpZbOQMsP1SSqOUT7HZoNKPj+pU0XaXicamMDv UjDR2hknZfkVf9iPKiX2u1Ob1HOZ3oTlPkuOU24MOnX+QdnqnwOmUoX+w3fgCs3J/ugn 0l2kuKhiIAtUhBvtBQ1cHba3lJjc6jVRtSg9KYAG1y6wm7NKyPSFzCT5l0bKjiILbBZv ej6uxs9rdOe56EjqguyQLZJzuIDXLDk65yipSuPjV81nrXO8Id/UL5D0W9DgDoAT006y 0i1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=qcIZFD3G+T3T9eYQ5HU5K305PbeAp6y0AXqEoxBDVIs=; b=YroEOM66n1rqN2tDOTob8PGhZ4Mi8Pvhedpn/M4x1X047Bj20DMPwLgq29wCj6IADh gib3fZHfmH95bR9LGU/A1lE1IQ3lKdrULpV1c7dZTrOmF+Qc2zU4xoUObEpnTB6ysvCq S9jsi1kul4K0q0GoIYSf8jfhUNZq8kQ0i2G51qDd91tHhXosAVQNxNelpyfhg6WIuyym TgmYY18jktEz31BTH3ei/csXf0Jf95ylT8iiD5YtWwVncAnMEB1lyjIpeU2p7O5xc6n3 6BMYyUyg6wGFDKp0Gndfxne9oOFmd4wF0EOlPqzfh/kR1LvRLinPq1hzgzspugUs0Ldu 9keg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13-v6si6308875pgh.627.2018.07.19.07.58.53; Thu, 19 Jul 2018 07:59:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731661AbeGSPlo (ORCPT + 99 others); Thu, 19 Jul 2018 11:41:44 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:33331 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730922AbeGSPlo (ORCPT ); Thu, 19 Jul 2018 11:41:44 -0400 Received: from p4fea5a5a.dip0.t-ipconnect.de ([79.234.90.90] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fgANc-0001VJ-My; Thu, 19 Jul 2018 16:58:08 +0200 Date: Thu, 19 Jul 2018 16:58:08 +0200 (CEST) From: Thomas Gleixner To: Jeremy Cline cc: LKML , Andrew Morton Subject: Re: [PATCH] scripts: Add Python 3 compatibility to spdxcheck.py In-Reply-To: <20180717190635.29467-1-jcline@redhat.com> Message-ID: References: <20180717190635.29467-1-jcline@redhat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Thomas Gleixner