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 A0CA7A0555 for ; Wed, 19 Feb 2020 16:58:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9A5B0B62; Wed, 19 Feb 2020 16:58:06 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id E340FB62 for ; Wed, 19 Feb 2020 16:58:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582127885; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DNyHpFnCQeAE+2NEqwEQ4NygZjdQ1jfDV2OHlBteuCQ=; b=NTzN6UjfhMLMdKPstWVyyo2891W6/fNff7JSM3ONyVoNbqxNG4urJc8v/UI88bVQCnei4L Xw0u37Ulnm3fqcHwBEepDR1SJ0KZB8P+Uwelvky+Xp1tN0IBmO+QXMqeTPdMws1ip38RyB 53WB8x9z8Z1CJMkJO9aSYHhxVwzA+Oc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-356-01LPufvtNkWLE8LAkOYKhg-1; Wed, 19 Feb 2020 10:58:02 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 38B33107ACCA; Wed, 19 Feb 2020 15:58:00 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.109]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8F8BF811F8; Wed, 19 Feb 2020 15:57:57 +0000 (UTC) From: Kevin Traynor To: Thomas Faivre Cc: dpdk stable Date: Wed, 19 Feb 2020 15:56:06 +0000 Message-Id: <20200219155607.20495-21-ktraynor@redhat.com> In-Reply-To: <20200219155607.20495-1-ktraynor@redhat.com> References: <20200219155607.20495-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: 01LPufvtNkWLE8LAkOYKhg-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'usertools: fix syntax warning in python 3.8' has been queued to LTS release 18.11.7 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/25/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/f9b34162ff487d8c3c= 59a246b785c9efc4cc987f Thanks. Kevin. --- >From f9b34162ff487d8c3c59a246b785c9efc4cc987f Mon Sep 17 00:00:00 2001 From: Thomas Faivre Date: Wed, 12 Feb 2020 13:31:56 +0100 Subject: [PATCH] usertools: fix syntax warning in python 3.8 [ upstream commit e1766e7b0c9b4ad30b330677f2376a05b3b46f0c ] Silent the following warning when running script with python 3.8: > /usr/bin/dpdk-pmdinfo:542: SyntaxWarning: "is" with a literal. > Did you mean "=3D=3D"? > if (autoload_path is None or autoload_path is ""): As autoload_path can only be None or a string, directly check its bool value. Fixes: c67c9a5c646a ("tools: query binaries for HW and other support inform= ation") Signed-off-by: Thomas Faivre --- usertools/dpdk-pmdinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usertools/dpdk-pmdinfo.py b/usertools/dpdk-pmdinfo.py index 069a3bf124..9d5c6369a0 100755 --- a/usertools/dpdk-pmdinfo.py +++ b/usertools/dpdk-pmdinfo.py @@ -540,5 +540,5 @@ def scan_for_autoload_pmds(dpdk_path): =20 (autoload_path, scannedfile) =3D readelf.search_for_autoload_path() - if (autoload_path is None or autoload_path is ""): + if not autoload_path: if (raw_output is False): print("No autoload path configured in %s" % dpdk_path) --=20 2.21.1 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092020-02-19 15:43:50.817113294 +0000 +++ 0021-usertools-fix-syntax-warning-in-python-3.8.patch=092020-02-19 15:4= 3:49.766141283 +0000 @@ -1 +1 @@ -From e1766e7b0c9b4ad30b330677f2376a05b3b46f0c Mon Sep 17 00:00:00 2001 +From f9b34162ff487d8c3c59a246b785c9efc4cc987f Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit e1766e7b0c9b4ad30b330677f2376a05b3b46f0c ] + @@ -16 +17,0 @@ -Cc: stable@dpdk.org