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 D52D7A04C0; Fri, 25 Sep 2020 16:33:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A58121E986; Fri, 25 Sep 2020 16:33:01 +0200 (CEST) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by dpdk.org (Postfix) with ESMTP id B6B4D1C43C for ; Fri, 25 Sep 2020 16:32:59 +0200 (CEST) Received: by mail-wm1-f67.google.com with SMTP id s13so3253100wmh.4 for ; Fri, 25 Sep 2020 07:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2yor5uI3UHCqYxXI37YFo4vfWlULmvS6D92nPr4gTIs=; b=O39OIY6KeIAv2tsEHbHP2nro53X5/cl6R5UK60vci38mooWwiNCrA+p1C+i4whgGV5 wgyQnxz7L2z57+nIu9DxP6/67vNt/qDtEpm9BF/PGNxVxFmnvu9kCh3E1J9SNNDfNnK6 k62rs07i5Vnxl3XO7W5ZwJ1e5L/QdTjk9cR70YSc6X40DM0rHIACHQ0+nHOpCyV4OBXM 7TcLbeLD5eKXnkpyAdyIXsZF2GU2GEyFakVcnqwPp4xa/pWUCDL/xxZklaFS9/EZ8T7Q q8nJYmnf8dPFvF8+2r+mFTG/gyibC6Q8qL9h+zcCbUEKjwgFB/c5/X/G4En25TqINfGY PkQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2yor5uI3UHCqYxXI37YFo4vfWlULmvS6D92nPr4gTIs=; b=HoOjt4rfgA3q7DDzcyIfvPQt+f+xXDiipej343FXmXiaeIDl9m1fqi6NMAa7q6G/44 rY5f4N5o+mYSHx6Yr9x/oWURzQz721aw+2MqvRrV89ZVUCUTYsFU+fGXf6dE69xwVzPV B2XPjs71ac4K/eQ/uz6qgqACN1q9wXPg+Qz2spTRIO38NfI1v6yo7p+SFF2X3IhpFvA5 WWWQ0OkmQT0VXtLekWoO9x5PTR5TscM9nweg5Ko8lcTZ32WQzsvxMYpkzDSHMFtEGXrK hlHG9WqOIFreou+I1Qon4I8bS6jvJWL+CwUlWBgUbyaL8LQQhwlbknPJ0spzYJpd9UsC gbMw== X-Gm-Message-State: AOAM532YDwb2nzi7WdCyF/gCdgxL1tZ0zVmz6wyMQ9iuS9wta09M7Ve0 qAWApTNX9kqJ9vL96v3e6ovMYg== X-Google-Smtp-Source: ABdhPJwS6mAq0RhHw3cBAqPa16EtHCyW253Rc9i2kQS0K2t4LHyO6Y4QT2q+lYjyceJS488E0DG4jQ== X-Received: by 2002:a7b:c090:: with SMTP id r16mr3541521wmh.56.1601044378327; Fri, 25 Sep 2020 07:32:58 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id o4sm2964752wru.55.2020.09.25.07.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 07:32:57 -0700 (PDT) Date: Fri, 25 Sep 2020 16:32:56 +0200 From: Robin Jarry To: Kevin Laatz Cc: dev@dpdk.org, bruce.richardson@intel.com, anatoly.burakov@intel.com, david.marchand@redhat.com, Louise Kilheeney Message-ID: <20200925143256.2hyrpv3zsfo6sugv@6wind.com> References: <20200921114634.220328-1-kevin.laatz@intel.com> <20200921120357.220588-1-kevin.laatz@intel.com> <20200921120357.220588-2-kevin.laatz@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921120357.220588-2-kevin.laatz@intel.com> User-Agent: NeoMutt/20180716 Subject: Re: [dpdk-dev] [PATCH v7 01/10] usertools/dpdk-telemetry-client: 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" Hi Kevin, all, 2020-09-21, Kevin Laatz: > From: Louise Kilheeney > > Changed script to explicitly use python3 only to avoid > maintaining python 2 and removed deprecation notice. > > Cc: Kevin Laatz > > Signed-off-by: Louise Kilheeney > Acked-by: Bruce Richardson [snip] > - self.unregister(); > + self.unregister() Is this related to Python 3? If not, it may be better to make code cleanups in a separate series. > except: > print("Error - Client could not be destroyed") > > @@ -86,7 +74,7 @@ def requestMetrics(self): # Requests metrics for given client > > def repeatedlyRequestMetrics(self, sleep_time): # Recursively requests metrics for given client > print("\nPlease enter the number of times you'd like to continuously request Metrics:") > - n_requests = int(raw_input("\n:")) > + n_requests = int(input("\n:")) > print("\033[F") #Removes the user input from screen, cleans it up > print("\033[K") > for i in range(n_requests): > @@ -107,7 +95,7 @@ def interactiveMenu(self, sleep_time): # Creates Interactive menu within the scr > print("[4] Unregister client") > > try: > - self.choice = int(raw_input("\n:")) > + self.choice = int(input("\n:")) > print("\033[F") #Removes the user input for screen, cleans it up > print("\033[K") > if self.choice == 1: > -- > 2.25.1 > -- Robin