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 7BBADA04BA; Fri, 2 Oct 2020 11:52:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E95841D511; Fri, 2 Oct 2020 11:52:15 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id CA4261D42B for ; Fri, 2 Oct 2020 11:52:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601632331; 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: in-reply-to:in-reply-to:references:references; bh=6O7b9tCHaw5I0EtCDwNUubmEgcg+AQSHms0scezacNs=; b=Cr/zJKzGHGPeXLaJ+AakHHO6l/T+DTEv1oN8X06ZuJageiRqY0TAJIVO4b14bgcqJSZTzp rfdW9IrZk5fBZ9wl+PY9Zs+IQ1NkXbt7msTsGzVJPZgYjvPymcfsHhgIsrmFxLBp/0kIXz a9m+CQHIF7JqMhqCVHyJW8o9jA45WtQ= Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-171-aickxu_XN_a8mO0f_mDs8A-1; Fri, 02 Oct 2020 05:52:09 -0400 X-MC-Unique: aickxu_XN_a8mO0f_mDs8A-1 Received: by mail-ua1-f70.google.com with SMTP id q1so368567uao.5 for ; Fri, 02 Oct 2020 02:52:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6O7b9tCHaw5I0EtCDwNUubmEgcg+AQSHms0scezacNs=; b=Q3ldcviqu3gAC4tZcSRc5UMzyQeEEJB3qWfI1rzVOriZzUSeScvP9UehhBZWzK3NI9 Tiwfh0rCp/8JX8li0OVRiudWWSKnutfZFIz7rs4+rL2f1FWaiLRpN0GaXojll9zIRroU qta6eZL3Q/vB+KJD41uTkZ4ZPfB2Q7QZbMUgPrN7EVEKS2LeZ+nUMcg+WEWJd36DXV6k YrBmZqg0q15MShPsTXg48+g7qWLcuIxaNFCIz3YEKwgE87ygJ7qp11rjJur/YINZtyTy yUVxGTGg9ITQP/BHj8a52yDKNGWUG1JTaDfZOb+AIflAKm/we1f5hLEcdRypGUOf+S/h xjQg== X-Gm-Message-State: AOAM533J89jhVTuQXP8IeReVLDjk9pW1UrA69kvASk+Al5dwI3gd1aja 1ikWcnh236n5jPEu0M/VVmsRJr6Y/w3V/2fMRJ4bkiB/cZtLIkbilMuHqxxnFgkrZKnlF4cwn3v R2r0v2Va9phrg+MMcbzw= X-Received: by 2002:a05:6102:10c2:: with SMTP id t2mr595082vsr.10.1601632329161; Fri, 02 Oct 2020 02:52:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhps0E1yQ0dHzDxZkYIoOOvvriI/9ZRx0cXZZcdFUKnpDJOdLSYShwjzKkP19zcjGNFMgtNmbaHV1gXXGzg3g= X-Received: by 2002:a05:6102:10c2:: with SMTP id t2mr595077vsr.10.1601632328923; Fri, 02 Oct 2020 02:52:08 -0700 (PDT) MIME-Version: 1.0 References: <20200929102224.440322-1-kevin.laatz@intel.com> <20200930114024.446473-1-kevin.laatz@intel.com> <20200930114024.446473-5-kevin.laatz@intel.com> In-Reply-To: <20200930114024.446473-5-kevin.laatz@intel.com> From: David Marchand Date: Fri, 2 Oct 2020 11:51:58 +0200 Message-ID: To: Kevin Laatz Cc: dev , Bruce Richardson , "Burakov, Anatoly" , Robin Jarry , Stephen Hemminger , Louise Kilheeney Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v10 04/11] usertools/cpu_layout: support python3 only 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 Wed, Sep 30, 2020 at 1:45 PM Kevin Laatz wrote: > > From: Louise Kilheeney > > Changed script to explicitly use python3 only to avoid > maintaining python 2 and removed deprecation notice. > > Signed-off-by: Louise Kilheeney > Reviewed-by: Bruce Richardson > Acked-by: Robin Jarry > Acked-by: Stephen Hemminger > --- > usertools/cpu_layout.py | 13 ++----------- > 1 file changed, 2 insertions(+), 11 deletions(-) > > diff --git a/usertools/cpu_layout.py b/usertools/cpu_layout.py > index 5423c7965f..89a48cec46 100755 > --- a/usertools/cpu_layout.py > +++ b/usertools/cpu_layout.py > @@ -1,18 +1,9 @@ > -#!/usr/bin/env python > +#!/usr/bin/env python3 > # SPDX-License-Identifier: BSD-3-Clause > # Copyright(c) 2010-2014 Intel Corporation > # Copyright(c) 2017 Cavium, Inc. All rights reserved. > > -from __future__ import print_function > import sys sys is not needed anymore. Fixed while applying. > -try: > - xrange # Python 2 > -except NameError: > - xrange = range # Python 3 > - > -if sys.version_info.major < 3: > - print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr) > - print("Please use Python 3 instead", file=sys.stderr) > > sockets = [] > cores = [] -- David Marchand