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 20B1CA0553 for ; Mon, 17 Feb 2020 18:47:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 190141DABB; Mon, 17 Feb 2020 18:47:35 +0100 (CET) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by dpdk.org (Postfix) with ESMTP id C05B01DAA0 for ; Mon, 17 Feb 2020 18:47:33 +0100 (CET) Received: by mail-wm1-f44.google.com with SMTP id g1so185791wmh.4 for ; Mon, 17 Feb 2020 09:47:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z5EU6xnegXuFhfIODjkcj12qsi+Vuo4783LH0b9C5c8=; b=IxhYk7cQWkimO5Iq5d5aDPGJxqsfOchSZfvArgNvv24aavQFA9L+pzSJw8kxMve4Nc pZZeGqyGdzeVLfpDV5ruUNWSmnC3CrenLWArWhslQpoRCkqcvQjgiLQZe4d5RBKJwfob 9V5MTv3f3UjjW7v1JkiY7+f0EtUQ7v3+JsbVsblNnJD8Z6SX/7S8Bw7kdKxa+7nsVb5w cSvFaDoNRtOmIwSQNbTQoX6VhRU7fv4abu1ORfvwFopz+Xiif4/yW+4m+6ey0y2m5XOA 4kUbBKcycUHw9KRIYWpMhjNBFPQzI2yzm1q394e4H+gK/HRoeNe+KczaKf3nfPTqJwFk lcIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z5EU6xnegXuFhfIODjkcj12qsi+Vuo4783LH0b9C5c8=; b=tIEijyGCHargoLbkkhjmRTN5W4l24GSsp7bAPhkEDFRyBRk2LmdZK30LKLbztWosPf AtTd5+/5GaL3p8FUVRvAISRb2YRZjCZ6eUppDCsCxJKA0YvZxu+0kcqqhXyTn2J0Ts19 jWAUufkvqqsMhLZiCRiJHEUTWPicUjRENmo9ahIHix6iTa0KfnDDqrbC69lKnGWRGg5D 1B74g09Fwr3uT0pwsmTXet0O/5pHvwIvGM35LQj1GOISlV6d29IyOHoRPZ6GXsi2vWEU zstdd2FmY+zJd+4cAoElqgQbb82ALZWCzxk3xBB32vElkOPYAEqvcCrbpU4ePW+/hCrp I8Ww== X-Gm-Message-State: APjAAAW4UnlcO/ZS0ylHIrfhhwRfgJTGAuUB7wWg8mqZPPFi1btj6WVP xCChYR1KGeSHNYPaAgm0XUI= X-Google-Smtp-Source: APXvYqxvHVcol5dfP+N//TttzYd7NGhNU5H+/S6lFz1edbbc40zzeVeYfdt92iaOdBdIBHJhDstgxA== X-Received: by 2002:a05:600c:2255:: with SMTP id a21mr147904wmm.79.1581961653431; Mon, 17 Feb 2020 09:47:33 -0800 (PST) Received: from localhost (userh634.uk.uudial.com. [194.69.103.7]) by smtp.gmail.com with ESMTPSA id 5sm2200674wrc.75.2020.02.17.09.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 09:47:32 -0800 (PST) From: luca.boccassi@gmail.com To: Thomas Faivre Cc: dpdk stable Date: Mon, 17 Feb 2020 17:45:45 +0000 Message-Id: <20200217174546.25334-53-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200217174546.25334-1-luca.boccassi@gmail.com> References: <20200211112216.3929-190-luca.boccassi@gmail.com> <20200217174546.25334-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'usertools: fix syntax warning in python 3.8' has been queued to stable release 19.11.1 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 stable release 19.11.1 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/19/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 rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 7262d69b854be94e0bf30caa615be147bc7e4108 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 "=="? > 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 information") 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 @@ -539,7 +539,7 @@ def scan_for_autoload_pmds(dpdk_path): return (autoload_path, scannedfile) = 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) return -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-17 17:00:16.779871532 +0000 +++ 0053-usertools-fix-syntax-warning-in-python-3.8.patch 2020-02-17 17:00:15.379951475 +0000 @@ -1,8 +1,10 @@ -From e1766e7b0c9b4ad30b330677f2376a05b3b46f0c Mon Sep 17 00:00:00 2001 +From 7262d69b854be94e0bf30caa615be147bc7e4108 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. @@ -13,7 +15,6 @@ value. Fixes: c67c9a5c646a ("tools: query binaries for HW and other support information") -Cc: stable@dpdk.org Signed-off-by: Thomas Faivre ---