From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8928DA04F0; Tue, 10 Dec 2019 13:00:31 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7E5F937A2; Tue, 10 Dec 2019 13:00:30 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 7985A23D for ; Tue, 10 Dec 2019 13:00:29 +0100 (CET) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Dec 2019 04:00:28 -0800 X-IronPort-AV: E=Sophos;i="5.69,299,1571727600"; d="scan'208";a="207257931" Received: from bricha3-mobl.ger.corp.intel.com ([10.237.221.46]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Dec 2019 04:00:26 -0800 Date: Tue, 10 Dec 2019 12:00:23 +0000 From: Bruce Richardson To: Thomas Monjalon Cc: John McNamara , Marko Kovacevic , robin.jarry@6wind.com, dev@dpdk.org Message-ID: <20191210120023.GA103@bricha3-MOBL.ger.corp.intel.com> References: <20191209210000.906000-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191209210000.906000-1-thomas@monjalon.net> User-Agent: Mutt/1.12.1 (2019-06-15) Subject: Re: [dpdk-dev] [PATCH] doc: fix build with python 3.8 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Dec 09, 2019 at 10:00:00PM +0100, Thomas Monjalon wrote: > After upgrading to python-3.8.0, a syntax mismatch is revealed: > > doc/guides/conf.py:240: SyntaxWarning: "is not" with a literal. > Did you mean "!="? > if value is not '': > > Replacing "is not" with "!=" seems the right thing to do. > Since this is basically just checking for an empty string is "len(value) > 0" not more logical than either comparison against ''? /Bruce