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 0CE89A04C0; Fri, 25 Sep 2020 16:52:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D5EBF1E9A4; Fri, 25 Sep 2020 16:52:55 +0200 (CEST) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id E6C6D1E998 for ; Fri, 25 Sep 2020 16:52:52 +0200 (CEST) Received: by mail-wr1-f68.google.com with SMTP id o5so3859411wrn.13 for ; Fri, 25 Sep 2020 07:52:52 -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=fFJwBNH+lPPJPqBC6Nc3C0qfY0QJIhSsWw09xtMmhH4=; b=j4pdA3tXXBibtQ7ZPxeuQWMWwoDjrYzw7dNaDhuGYSGbmfXNIm++TOvpJFuwji2sWg sLanz2MhOnx2CBqm/WNQk9h2zqSBmYGSwKuvXqChqWyBhTfDQJfQebMu+aZ+Eba08ya3 A+baoy017xp5lZag3RTANElS5pFJdsBVbTQA1dZ/Q5eZzPPc3cHsI/or2a7HhftcP9tZ lVA3Rqel4dyJJWw7UcHafmNB6PcwI2E2HhZG/UfZcGCmSEdf7h3fimKdeimUJfct6FmX 7FiQFxXv3MVwHcmYRlZeVPxcavQXHXqMcXAmAZKzSmmr3qY60bcN2zzaDfQt7DidO7EL r/7Q== 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=fFJwBNH+lPPJPqBC6Nc3C0qfY0QJIhSsWw09xtMmhH4=; b=J1UmGPN7QveDLivjnm6YqHa3wUL5+0Of0EUdeoMtTfrTUbO2iLYO+DlOKUfbLu2cS+ tvZaKd0NQFrfDzsj1t6cLgT7Cfjru+giF7fLWhviSXxIdru9NeM9czCwGZJDKrHpFGsy HMfMxaRZ9s5Omehk3HIlVzTuNFQHFcCzqdrOiEyo9rHHYU+331Yye5XZRWYOfJVMEVgF e3Vwf3Kriz8BFX52TiU+RWxusrSUxzXwKA/9wVKX4KnyxzgBxCGpTohv9g0ekLprTUA4 SiySEvj6YB8MAy9ZcT929PsCOQoqAlCBhb25lzrbVos6cTdCEfu/QZDoiyGBQwdaU8G+ +9jw== X-Gm-Message-State: AOAM531CT1xo6FwdB/Qf5xQIDcv584RD4EYCa7hBwsyTdjxKoIE+fKAl AVbDOlu63whZ+Vm14qwyRyfGQw== X-Google-Smtp-Source: ABdhPJyXi9N20HbXAYa3beby/IGGA1cCtkpe8dSl6tKuE9h1Oh4siNVStMX0VXHShhYu316qYniI4w== X-Received: by 2002:a05:6000:88:: with SMTP id m8mr1510866wrx.280.1601045572695; Fri, 25 Sep 2020 07:52:52 -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 i14sm3336459wro.96.2020.09.25.07.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 07:52:52 -0700 (PDT) Date: Fri, 25 Sep 2020 16:52:51 +0200 From: Robin Jarry To: Kevin Laatz Cc: dev@dpdk.org, bruce.richardson@intel.com, anatoly.burakov@intel.com, david.marchand@redhat.com, Olivier Matz , Louise Kilheeney Message-ID: <20200925145251.iktb6zuikkbi3gbx@6wind.com> References: <20200921114634.220328-1-kevin.laatz@intel.com> <20200921120357.220588-1-kevin.laatz@intel.com> <20200921120357.220588-6-kevin.laatz@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921120357.220588-6-kevin.laatz@intel.com> User-Agent: NeoMutt/20180716 Subject: Re: [dpdk-dev] [PATCH v7 05/10] app/test-cmdline: 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: > Changed script to explicitly use python3 only to avoid > maintaining python 2 and removed deprecation notice. > > Cc: Olivier Matz > > Signed-off-by: Louise Kilheeney > Signed-off-by: Kevin Laatz > Reviewed-by: Bruce Richardson [snip] > @@ -43,7 +38,7 @@ def runHistoryTest(child): > i = 0 > > # fill the history with numbers > - while i < history_size / 10: > + while i < int(history_size / 10): > # add 1 to prevent from parsing as octals > child.send("1" + str(i).zfill(8) + cmdline_test_data.ENTER) > # the app will simply print out the number It would be better to use the integer division operator: // -- Robin