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 1298BA04C5; Sun, 6 Sep 2020 03:32:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 261ED1C0DA; Sun, 6 Sep 2020 03:31:48 +0200 (CEST) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by dpdk.org (Postfix) with ESMTP id E1B121BEA7 for ; Sun, 6 Sep 2020 03:31:44 +0200 (CEST) Received: by mail-pg1-f193.google.com with SMTP id j34so897216pgi.7 for ; Sat, 05 Sep 2020 18:31:44 -0700 (PDT) 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=+I97ORinggSpAxlykndpMsIbCkjHdqnrrc4mcPDuiiI=; b=K5QPR8aUcgURlI0zoGZ5Nr2StEeJsz0mXhE4tjCwlNdC1vN9VpcPvvJB+4Zveye+xQ dA69eQrXx0ya6f7Oj+rkwqrZqMlGX9uhXlMjH+QH3O2LuV8qRMUK/QlfHxnbXuaqMSti 43sj3aZU8Sp42+r8mxSTT6bTauRoKoZzb3Nd8CWUnDKgOm8HiqqJHqrbp+AgxFnaTn39 Zukf9betBJNpbwGnUMNgnppL348qRiLaRlSvMmlH2hY/TR6E/nPUoY+YHP0k6rMMX1PC ufxcRliDGJ3bQKEbUKd1t7bG7Zu2SvtMDdUQuPMNFtXw1//kNHmBsTpfEPAwya4r8+XP LY3Q== 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=+I97ORinggSpAxlykndpMsIbCkjHdqnrrc4mcPDuiiI=; b=TQOLhTwjCXwT6nO0gIqEfR+oAEob7RDkZn7ifjRzfI3jghhE7s7eDeXugfGBHM/7fa 7w4tBUkWCRg0TIfIZkESTvgxHFSvr6AUEVGAmewz3sBzXHKjq8jq66KAIKClgxnXkXJe Ryw/9/79CKsNqOBaec4fO0aZXIGxJHoKIHdb3xayHtmHJNrfr3hOVoGmCwC3fA1qJkWD cpHP8x6iqScRnrWmTVuqnLyW8WXXqJQzksqM3KvTJDxiahQV3Q6soxfDQ2KO1ILbSHzK GEGiKuAHTMG2MWcCdNHPHAerT2jXX2+3eIhgtQi2qPFafn2hEDTQYYJ6TgNPGv7scTVC fOEQ== X-Gm-Message-State: AOAM530YViUWPNqtrGiVB2KwqU2qZNnopp4gbFSK6/123xOefjXaOn6n 04KKNYYCPUBHEQx83OnHM7/9U1DqirT70g== X-Google-Smtp-Source: ABdhPJyWu8juY08y2wNC5+ekZV/zINxvyq8yq5ZysyJPnEf0PiI3UJrMsXeXIdMIjQ7J4516iQ4RzA== X-Received: by 2002:a63:413:: with SMTP id 19mr12446211pge.310.1599355903589; Sat, 05 Sep 2020 18:31:43 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id n127sm10731863pfn.155.2020.09.05.18.31.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Sep 2020 18:31:42 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Sat, 5 Sep 2020 18:31:24 -0700 Message-Id: <20200906013133.26360-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200906013133.26360-1-stephen@networkplumber.org> References: <20200906013133.26360-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 02/11] dpdk-pmdinfo: replace string.split with split 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" In python3 the standard way to split strings is to use the split() on the string object itself. The old way is broken and would cause a traceback. Signed-off-by: Stephen Hemminger --- usertools/dpdk-pmdinfo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usertools/dpdk-pmdinfo.py b/usertools/dpdk-pmdinfo.py index 16619827911a..7576a3313f36 100755 --- a/usertools/dpdk-pmdinfo.py +++ b/usertools/dpdk-pmdinfo.py @@ -11,7 +11,6 @@ import io import os import platform -import string import sys from elftools.common.exceptions import ELFError from elftools.common.py3compat import byte2int @@ -229,7 +228,7 @@ def loadLocal(self): def search_file(filename, search_path): """ Given a search path, find file with requested name """ - for path in string.split(search_path, ":"): + for path in search_path.split(':'): candidate = os.path.join(path, filename) if os.path.exists(candidate): return os.path.abspath(candidate) -- 2.27.0