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 E54C6A04E7; Wed, 4 Nov 2020 07:48:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4916FBE87; Wed, 4 Nov 2020 07:48:54 +0100 (CET) Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by dpdk.org (Postfix) with ESMTP id 6D7D0BE7B for ; Wed, 4 Nov 2020 07:48:52 +0100 (CET) Received: by mail-pg1-f181.google.com with SMTP id g12so15744065pgm.8 for ; Tue, 03 Nov 2020 22:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8ahSNaqcDdkZTEYzqpgY1Sayu/rP7xMs9CA+6MyGvSk=; b=r0E7816ktXsXP9UYyDsAlz5IUJ+2XG+pzKL7Syp2hRcxI7hUKNhbHkbZ+d9jj/xIwI STEWK+AH9URQK51UO2pt20T5cTjC1GccLawTHzujWz3ksxxS8+NQ1Kbnn4sfXjrQkf6R pUzWaUmScGFnraTIgym4or85MBHqhxNufrVwbkRHmiaqy/1j4AA2seu1RwM30lGViLIO W90lS1wJhu5RRPPL4vzmv7pTTllCjL/pMC1cNYDv047hIrNi3EmrbhKOJfyeAUga8CB4 NfxfIoNdmggjvogeYZNc3wUeFMkh+dSi9Uny/kUxMR4oI4VBhN30Mhd/0NlzZ/ofdWTI vwfw== 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=8ahSNaqcDdkZTEYzqpgY1Sayu/rP7xMs9CA+6MyGvSk=; b=q2L/V7FxjOL+HSwFJSbZxqDRwM4GgK/qQND2gbFS4sppnlRiMGaEI9xUq06Qz4Y4XQ ek+crHwGB9vpY78KkT/wbs291yZgIubdsybO4pLUXBQ3/ybrgDP5dAbfLVMuX1Js9GYx 6Az2dEufiicgDah705LpPQ4/GENKOsrqtXJqsg8rIiMsREN1O7Y6tgPr8UjcR3Bh7Nti Hjm+AzM+pKJoq0hyOWc6Um3OX7Dmq+fE6nlfm3u2nBQrkJNa4JdeI1V17+iXVUEWElQz LpWLZjMgtevIcEfoDvday2T8mgTvxumH0Piu/TxP1a/U+jVMQKlH8Rjq8PYk7TNiamTY he2w== X-Gm-Message-State: AOAM533MiOTsk08TdctYSMmz/XFcOykzTWIbLTvwcfVCxLwLC4f2ExZp iwlP9VApFUqPcMn82cThQF/iIvDQryqu1IVX X-Google-Smtp-Source: ABdhPJx89Xmx1JyewjRvZWX3vON4SEERJ6k8w4PWFx8wdk8qIedXp6y9ZmVKPUfNOVnwuy6jnL7npg== X-Received: by 2002:a17:90b:3c8:: with SMTP id go8mr2908665pjb.229.1604472530551; Tue, 03 Nov 2020 22:48:50 -0800 (PST) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id c12sm1144137pgi.14.2020.11.03.22.48.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 22:48:49 -0800 (PST) From: Stephen Hemminger To: nhorman@tuxdriver.com Cc: dev@dpdk.org, Stephen Hemminger Date: Tue, 3 Nov 2020 22:48:35 -0800 Message-Id: <20201104064842.25832-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200906013133.26360-3-stephen@networkplumber.org> References: <20200906013133.26360-3-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/7] dpdk-pmdinfo: python lint cleanups 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" Ran dpdk-pmdinfo through Python3 lint and it had lots of complaints. These are the obvious simple ones to fix. Skipped adding docstrings everywhere and doing large scale variable recasing. v2 - split out the pmdinfo specific part incorporate feedback from Bruce about last use of len() Stephen Hemminger (7): dpdk-pmdinfo: replace string.split with split dpdk-pmdinfo: replace io.open with open dpdk-pmdinfo: remove unnecessary paren and else dpdk-pmdinfo: replace is False and is True dpdk-pmdinfo: fix indentation dpdk-pmdinfo: replace deprecated optparse with argparse dpdk-pmdinfo: do not use len(x) to test for empty usertools/dpdk-pmdinfo.py | 132 ++++++++++++++++++-------------------- 1 file changed, 61 insertions(+), 71 deletions(-) -- 2.27.0