From patchwork Tue Jan 15 10:15:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juerg Haefliger X-Patchwork-Id: 1025104 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43f5p96JsPz9sCr; Tue, 15 Jan 2019 21:16:01 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1gjLlB-0001kh-Cy; Tue, 15 Jan 2019 10:15:53 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1gjLl9-0001kb-Eo for kernel-team@lists.ubuntu.com; Tue, 15 Jan 2019 10:15:51 +0000 Received: from mail-wr1-f72.google.com ([209.85.221.72]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1gjLl9-0005yS-7d for kernel-team@lists.ubuntu.com; Tue, 15 Jan 2019 10:15:51 +0000 Received: by mail-wr1-f72.google.com with SMTP id j30so841895wre.16 for ; Tue, 15 Jan 2019 02:15:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=SP8vXWLJqUsglPbRciJRfb1+OP3+6C3nQwsmOx+jOo0=; b=UaW15l7RpP8RQcORvJh9xMb1RJpPM9s27dNhyhK1mpe+d7SgIgg6MA6FSp7WhXDG43 MHU9kj6Q/KsyEAFPfWXoRnm3ET0sI7+r3cQ4ZcaealKY5njtWfop5nfmebeUxPufkvGQ On0/Sha0Mmes1KIcYtd8OSvbZurP8v7Frk0xiRosZvIYqR6/g1RJQRBiarVRA96u/FlF ThQjieG1mKk/cEPqHHJ7ynvFzt+NZx/gwaSDQoGgr8Gt6cpKLK3ZO0+9HhmgyFOpBgnP +hKfv7nKM33oMmagIV84CgoLVbFoRfARJk4K5M2+9fIeOtporA/YpWOujWZOIjGi3H+H 2OoA== X-Gm-Message-State: AJcUukeAjasQtiL5WaQUZIbCGDQUvDlidBqHjpbDWVuP/w86sUUsLV10 Kl+jwj8sxK4hxjsGhFp7LMiH/sgwjax0FEfPGsq9wLSu/nu/21pw/yEqctXhJS9YE9gNnVRt+Dk PoPEtH+iVHRTUJzQTLCE8W4+riSkM4qJVa5P9Fi8VSQ== X-Received: by 2002:adf:83a7:: with SMTP id 36mr2421579wre.13.1547547350660; Tue, 15 Jan 2019 02:15:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN4t9Yp5oAluaz1iTnEWkHH9VWHNFUBJUUdwf/wxT2w9jDj2JCvfSoOLelwfuTRDOF0kjz/kOg== X-Received: by 2002:adf:83a7:: with SMTP id 36mr2421559wre.13.1547547350402; Tue, 15 Jan 2019 02:15:50 -0800 (PST) Received: from gollum.fritz.box ([81.221.192.120]) by smtp.gmail.com with ESMTPSA id a132sm39864955wmh.5.2019.01.15.02.15.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 02:15:49 -0800 (PST) From: Juerg Haefliger X-Google-Original-From: Juerg Haefliger To: kernel-team@lists.ubuntu.com Subject: [SRU][Cosmic][Patch] tools/kvm_stat: switch to python3 Date: Tue, 15 Jan 2019 11:15:48 +0100 Message-Id: <20190115101548.16270-1-juergh@canonical.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Stefan Raspl BugLink: https://bugs.launchpad.net/bugs/1798776 The current shebang does not work in environments that only support python3 and have no python2 installed. Plus there does not seem to be a way to support python2 and python3 at the same time. Since all known python3 issues were fixed, and as python3 is the way to go, let's switch over. Note that the code is still python2 compliant, so folks in bad use can simply revert the shebang. Suggested-by: Christian Ehrhardt Signed-off-by: Stefan Raspl Signed-off-by: Paolo Bonzini (cherry picked from commit 09f70c3b70e7d9e209a820b54dda42502fa40711) Signed-off-by: Juerg Haefliger Acked-by: Stefan Bader Acked-by: Kleber Sacilotto de Souza --- tools/kvm/kvm_stat/kvm_stat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat index 7c92545931e3..fb25837df44f 100755 --- a/tools/kvm/kvm_stat/kvm_stat +++ b/tools/kvm/kvm_stat/kvm_stat @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # # top-like utility for displaying kvm statistics #