From nobody Sat May 18 07:48:36 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589279706; cv=none; d=zohomail.com; s=zohoarc; b=Mj3zpeMc2HEQIAa1wi11bJK2+I3fFxhVE81qIS/Zj0Sk4HgxMA4XD8ve/gUvCxA4wKrFhApv65zvvh1kKqxAk62lHF/dSp8hTMZA33h7UlMveqywxo3tlGaKgT/iPm3ZchQuWVLeTA7FXUjDwKkCLtz12rZublpRD54GNUNC/f8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589279706; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=o+SFxNiQTSKSfzcy81S2xitOyf6spOQEd9fCWLhnCeY=; b=XBvpNbbLgHK2iIl6MLh7oFG8/vt+4gEhpvI2UmcxfJ5Sv4tpSpP4b2FqAQ5rwamjdFOi1vuFUqAAze9ZU+alP9Vas8XDLxZyfu95Z/20vJrfwJTBMwtravI2SvlWxNpW7vRYqUWjFXwU9uRgKgvxdBgDI14K5fZ2PzyEmtRoU1M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1589279706933527.9370532524916; Tue, 12 May 2020 03:35:06 -0700 (PDT) Received: from localhost ([::1]:52136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYSFd-0000aM-Ky for importer@patchew.org; Tue, 12 May 2020 06:35:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYSDU-0006VC-De for qemu-devel@nongnu.org; Tue, 12 May 2020 06:32:52 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:46147 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jYSDT-0007Td-DA for qemu-devel@nongnu.org; Tue, 12 May 2020 06:32:52 -0400 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-142-7Tyv2hDcNxi8k2HVuAcz8A-1; Tue, 12 May 2020 06:32:49 -0400 Received: by mail-wm1-f69.google.com with SMTP id e15so935672wme.1 for ; Tue, 12 May 2020 03:32:48 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id u16sm21863464wrq.17.2020.05.12.03.32.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 03:32:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589279570; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o+SFxNiQTSKSfzcy81S2xitOyf6spOQEd9fCWLhnCeY=; b=TO33+CtlErgSHZoB9Xur1+e9Xz63kbAEaji42f3v0pii09U8TdxDhN4KmgXwOZh7LobQ+P 7PIAsMAPk+cEzYQDw6fXC6R639KdkTYZhDHFFLaFvptW5h4LbAQTBA3KAbFmHCEQsnyKGn C95kf3s7iu2o8sa5tEbNjuDBMuBhp9U= X-MC-Unique: 7Tyv2hDcNxi8k2HVuAcz8A-1 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=o+SFxNiQTSKSfzcy81S2xitOyf6spOQEd9fCWLhnCeY=; b=kYmVfcmO6orCf9JfqfmwHgE1lfADbcjKaitY2klvxnA4M1cqSapaFLhedY4NZz0YdI QOzDyS5EwSHdxVDOpz15Yn/5K31srp0+KgP3T9LIKKw75OOi6FCPdJKKFGwnbOWaYRwa VYEYXKBTP+YNtj79UM2wcF/+qxob93JOLZdLtvXy+SIVXbUFiQNGA0EplLm5FHm06EV5 +/YzgwoBHqR/zxcEUP+v/L4BY0q9/tc6amkkAL330/ywxt+ApDW+8ioBI4caEiQxBpq6 65ht+8ksVuYc2uYx7kD2Gzi7t18/76gHo4Sg3P+/4eIaXfyQy/NgbuwLVc0ivtCh1ilO BvgQ== X-Gm-Message-State: AGi0PuaoiLk7GZqloyM36JEcZSL6a2ftmfzSfzliL0o5EBYiUBlM7jUT K8oIRTOdD0fddayQhYfdxdR3AlhSKpxtPi7BUlWeFgUDQATbFAH98MY1DkSj8cjZk+YQ4uZ1I1V +jn0CtmjCwQDiUzo= X-Received: by 2002:adf:cc81:: with SMTP id p1mr23275933wrj.192.1589279565457; Tue, 12 May 2020 03:32:45 -0700 (PDT) X-Google-Smtp-Source: APiQypIdq6xklNhE6zF2ex6riiZ2WEeaRBZwdbLSVo8fxAyW06Ghhyjcwp0kiKh5i+SK1pgUYQQIhQ== X-Received: by 2002:adf:cc81:: with SMTP id p1mr23275905wrj.192.1589279565172; Tue, 12 May 2020 03:32:45 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 1/6] scripts/qemugdb: Remove shebang header Date: Tue, 12 May 2020 12:32:33 +0200 Message-Id: <20200512103238.7078-2-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200512103238.7078-1-philmd@redhat.com> References: <20200512103238.7078-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 02:02:04 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , kvm@vger.kernel.org, qemu-block@nongnu.org, qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Marcelo Tosatti , Markus Armbruster , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Stefan Hajnoczi , Cleber Rosa , Paolo Bonzini , John Snow , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Philippe Mathieu-Daud=C3=A9 These scripts are loaded as plugin by GDB (and they don't have any __main__ entry point). Remove the shebang header. Acked-by: Alex Benn=C3=A9e Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: John Snow Reviewed-by: Kevin Wolf --- scripts/qemugdb/__init__.py | 3 +-- scripts/qemugdb/aio.py | 3 +-- scripts/qemugdb/coroutine.py | 3 +-- scripts/qemugdb/mtree.py | 4 +--- scripts/qemugdb/tcg.py | 1 - scripts/qemugdb/timers.py | 1 - 6 files changed, 4 insertions(+), 11 deletions(-) diff --git a/scripts/qemugdb/__init__.py b/scripts/qemugdb/__init__.py index 969f552b26..da8ff612e5 100644 --- a/scripts/qemugdb/__init__.py +++ b/scripts/qemugdb/__init__.py @@ -1,5 +1,4 @@ -#!/usr/bin/python - +# # GDB debugging support # # Copyright (c) 2015 Linaro Ltd diff --git a/scripts/qemugdb/aio.py b/scripts/qemugdb/aio.py index 2ba00c4444..d7c1ba0c28 100644 --- a/scripts/qemugdb/aio.py +++ b/scripts/qemugdb/aio.py @@ -1,5 +1,4 @@ -#!/usr/bin/python - +# # GDB debugging support: aio/iohandler debug # # Copyright (c) 2015 Red Hat, Inc. diff --git a/scripts/qemugdb/coroutine.py b/scripts/qemugdb/coroutine.py index 41e079d0e2..db61389022 100644 --- a/scripts/qemugdb/coroutine.py +++ b/scripts/qemugdb/coroutine.py @@ -1,5 +1,4 @@ -#!/usr/bin/python - +# # GDB debugging support # # Copyright 2012 Red Hat, Inc. and/or its affiliates diff --git a/scripts/qemugdb/mtree.py b/scripts/qemugdb/mtree.py index 3030a60d3f..8fe42c3c12 100644 --- a/scripts/qemugdb/mtree.py +++ b/scripts/qemugdb/mtree.py @@ -1,5 +1,4 @@ -#!/usr/bin/python - +# # GDB debugging support # # Copyright 2012 Red Hat, Inc. and/or its affiliates @@ -84,4 +83,3 @@ def print_item(self, ptr, offset =3D gdb.Value(0), level = =3D 0): while not isnull(subregion): self.print_item(subregion, addr, level) subregion =3D subregion['subregions_link']['tqe_next'] - diff --git a/scripts/qemugdb/tcg.py b/scripts/qemugdb/tcg.py index 18880fc9a7..16c03c06a9 100644 --- a/scripts/qemugdb/tcg.py +++ b/scripts/qemugdb/tcg.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # -*- coding: utf-8 -*- # # GDB debugging support, TCG status diff --git a/scripts/qemugdb/timers.py b/scripts/qemugdb/timers.py index f0e132d27a..46537b27cf 100644 --- a/scripts/qemugdb/timers.py +++ b/scripts/qemugdb/timers.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # -*- coding: utf-8 -*- # GDB debugging support # --=20 2.21.3 From nobody Sat May 18 07:48:36 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589279865; cv=none; d=zohomail.com; s=zohoarc; b=I2v2UMTETDN9S2m8r65QTsXelVBVu7a+69szILphjIn58WUHtPITzMoKZ9MBz+LhIP+OsjUkt6Ve5JzwW90w0kCylqktJ/OBBgNi5VAqu4p6ip+bahS5qz0pReDbS/JWy7rWCew94cLevuxMmcSdQ33b++Ta2fL/iLSnWh4wYw0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589279865; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zOtCARhB88XtH+7DaaroGpTjVIhIb43b3LSLjds5GUw=; b=P+YffNwFh8vY06a+URxTJLTKJQV529QiWo3KkAFmZHsfHkalzosux0snNazUzNHK+D3Mx7sblgs/TD9MozSTm1lbF3oTQHij77hTzSWxSZH+9w5JfjFhkUOgKCiRWNntCZPzFnqPliSqCl6H4D6n6D+6fr3XcZ1SNlLKBlcNSUc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1589279865960490.3453713446645; Tue, 12 May 2020 03:37:45 -0700 (PDT) Received: from localhost ([::1]:60232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYSIC-0004Gj-MQ for importer@patchew.org; Tue, 12 May 2020 06:37:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYSDZ-0006f2-Mh for qemu-devel@nongnu.org; Tue, 12 May 2020 06:32:57 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:44703 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jYSDZ-0007UJ-0d for qemu-devel@nongnu.org; Tue, 12 May 2020 06:32:57 -0400 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-428-W3BiperrMAugvXB27e3IVQ-1; Tue, 12 May 2020 06:32:51 -0400 Received: by mail-wm1-f71.google.com with SMTP id e15so935723wme.1 for ; Tue, 12 May 2020 03:32:51 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id u74sm31235914wmu.13.2020.05.12.03.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 03:32:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589279576; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zOtCARhB88XtH+7DaaroGpTjVIhIb43b3LSLjds5GUw=; b=akSLD2/A0Ip6YVP9iNnJ4krRL2iuA+NoOpo3VNpa3utcej16tgoa1SN54Cya4bBLX4FC3i XQEpZjKCxSkcNNCYReHrQ4ZhA4qI5+T/UL7BLPxZkdR/S/M5Ec+Uk8eIJd9ye04HMaEX7i 4tCXEkx2sPKW7Wo58hbxwuM3DxMWJQw= X-MC-Unique: W3BiperrMAugvXB27e3IVQ-1 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=zOtCARhB88XtH+7DaaroGpTjVIhIb43b3LSLjds5GUw=; b=eHzZXZ6iA2T3OjDEBGDGARta9i9xkFn8LmOigEZOM2WzPDYSpM97DbsdpeY9uOf56W mY5VMrTXbFe4BsLDBxYR7bTGeCzlAubL2Q7XtD8q1Z8Hk6Sm51gvTUqYArd9Etosi1/O n36NsRFaaS3mgqJuZF3q3Em0070IdH+nixKAw7YF9BfKz6v+TyYAHl9RWrX98ZjHOi8r HVeiuOfSopmiV1onZTbFY37U1DMz/QqGsZS4I65RMQ+TWQKT6SbiZTV6ctX4vTRblsT+ BVRHUqYUr6omHCyDs8flWLRRP2E1wrb1R1PofAU63bcf43Ic0LrObQ8MErlFZ9lq474R 5FHw== X-Gm-Message-State: AGi0PuaohfovRioGZvdnclBdnFAIDRFClszPzNu2taSlXK8/m/0BXqaB 8UvSV3BMjM7abOOmmvC7AAfPlmkLdZZCBC0gD9xIlRKmZvYjrPLcIuK4meQoNNZwlEGRiQRXFAQ +LygwN+hFHifZRhc= X-Received: by 2002:adf:f3cc:: with SMTP id g12mr12858077wrp.427.1589279570203; Tue, 12 May 2020 03:32:50 -0700 (PDT) X-Google-Smtp-Source: APiQypIp4cKlTsev0nh13QNGo5ccEqxoYf5orH801v8Ck5Kq9gfAUjGI6X3+2CENt1I9LXed1D7kpQ== X-Received: by 2002:adf:f3cc:: with SMTP id g12mr12858058wrp.427.1589279570025; Tue, 12 May 2020 03:32:50 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 2/6] scripts/qemu-gdb: Use Python 3 interpreter Date: Tue, 12 May 2020 12:32:34 +0200 Message-Id: <20200512103238.7078-3-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200512103238.7078-1-philmd@redhat.com> References: <20200512103238.7078-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.61; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 02:02:05 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , kvm@vger.kernel.org, qemu-block@nongnu.org, qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Marcelo Tosatti , Markus Armbruster , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Stefan Hajnoczi , Cleber Rosa , Paolo Bonzini , John Snow , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: John Snow Reviewed-by: Kevin Wolf --- scripts/qemu-gdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/qemu-gdb.py b/scripts/qemu-gdb.py index f2a305c42e..e0bfa7b5a4 100644 --- a/scripts/qemu-gdb.py +++ b/scripts/qemu-gdb.py @@ -1,5 +1,5 @@ -#!/usr/bin/python - +#!/usr/bin/env python3 +# # GDB debugging support # # Copyright 2012 Red Hat, Inc. and/or its affiliates --=20 2.21.3 From nobody Sat May 18 07:48:36 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589279941; cv=none; d=zohomail.com; s=zohoarc; b=CpzRCjGJRNhLr97LGpa2hhntYaJEpHO/RSa+3IXQlWPvw0vkLVoENApg7V/V3iMGCYw+D2esgNoUQ7deHvNZzo3ZyKZguAUUAukGcXljqxXlFyWAlzehhSaGWBqCJ60rmSWKL0OGn+B9EKZ2NfDq8sbJ50k67jF52OXDh8T6Mrk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589279941; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=oWSfUmBy5G7w8s0mFzIrpHSBiQEAL75l96FocmDeH+w=; b=B5pLvCPdj0JwwMK7LYyfzNyuasf5wBiacTN1vXd5QwX4QWLPPYoaiOSOrRF1RYfUXKhOf/kUmBTjURy8d7gRtsnytyFem3zW1fRfRYLdGJJATD8eKuHUGMCB3YtdFGMH0IRImsK6xdSH14djThG30o/un07T2MV0TUJ2dTCphO0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1589279941179563.8123371540893; Tue, 12 May 2020 03:39:01 -0700 (PDT) Received: from localhost ([::1]:36620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYSJP-0006Et-VM for importer@patchew.org; Tue, 12 May 2020 06:38:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYSDb-0006if-E5 for qemu-devel@nongnu.org; Tue, 12 May 2020 06:32:59 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:60305 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jYSDa-0007Ue-9K for qemu-devel@nongnu.org; Tue, 12 May 2020 06:32:59 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-354-MxkKFgYxPcG4hfqgxGxhuA-1; Tue, 12 May 2020 06:32:56 -0400 Received: by mail-wr1-f69.google.com with SMTP id y7so6706362wrd.12 for ; Tue, 12 May 2020 03:32:56 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id b18sm1112431wrn.82.2020.05.12.03.32.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 03:32:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589279577; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oWSfUmBy5G7w8s0mFzIrpHSBiQEAL75l96FocmDeH+w=; b=JKYYkF5pg+/SSLA7p+rqe6rlvo1hrguFd3la7Ll+H3KBcOiz5nrz4hEkCH85sEj9Un3+ZG IPnL3DeTFhiHvDG1MuHHOHpZzNTCgsyGZ0Ot+JP3cjnDJ8j1Bl0HWsthy93iwF/2elttoa koy6bo3iixfwM7BEMmzKGwQ1a1OVmJM= X-MC-Unique: MxkKFgYxPcG4hfqgxGxhuA-1 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=oWSfUmBy5G7w8s0mFzIrpHSBiQEAL75l96FocmDeH+w=; b=hoMXENDEEgGF5yXBnNH01Qfm3STm2Jnh9fmkm52dF1CBuy5ciLZndgJb+HhoP/JRXQ b7S/ZtzE7QEyQlmeqkoGn3NWmwX1Pd/D0q8/tosfQLLK3jzT5tpg+/eFdea2xeAHT8B9 Dpk2XQgFXmG2ZdMaF9s0Nu0DNBjrljq+v+czATqo5EFzABZDW/45cvZnIBRoTaidcsb7 1TZNEy1D2ngdyqSwIwGnJXA0nYkISTV4waVcjbhDE8nBLUmQICZmymPXLuT3qCXINuHS 38BzBp7D222x1ATprocjTJmh6eqItjNaZHf4YD+ozB9tU+IykuJOf7Czqh/WGzRWRxAS zcsA== X-Gm-Message-State: AGi0PuYYSQ4h9F+KGrK7HHtGGnKwXHUxK21qlx64llDq9wSRLuWURSSX pMkgyb01QOBpkhozW0yf70XSetu+8nzEzxVgpfLMDQ0TPXnbjB+tQjAFbMGH9xKUjntFGEj6Jr5 kfwbCEjYyE1yrcyw= X-Received: by 2002:a5d:560c:: with SMTP id l12mr23822077wrv.309.1589279574899; Tue, 12 May 2020 03:32:54 -0700 (PDT) X-Google-Smtp-Source: APiQypIQhhMzrfHJzuqqGpCMtne83+qTrDIGPL9GtO3XV5eyvzYb43eEF0XvrPWMJEaysSiQNLomJg== X-Received: by 2002:a5d:560c:: with SMTP id l12mr23822059wrv.309.1589279574750; Tue, 12 May 2020 03:32:54 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 3/6] scripts/qmp: Use Python 3 interpreter Date: Tue, 12 May 2020 12:32:35 +0200 Message-Id: <20200512103238.7078-4-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200512103238.7078-1-philmd@redhat.com> References: <20200512103238.7078-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 02:02:04 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , kvm@vger.kernel.org, qemu-block@nongnu.org, qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Marcelo Tosatti , Markus Armbruster , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Stefan Hajnoczi , Cleber Rosa , Paolo Bonzini , John Snow , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: John Snow Reviewed-by: Kevin Wolf --- scripts/qmp/qom-get | 2 +- scripts/qmp/qom-list | 2 +- scripts/qmp/qom-set | 2 +- scripts/qmp/qom-tree | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/qmp/qom-get b/scripts/qmp/qom-get index 007b4cd442..7c5ede91bb 100755 --- a/scripts/qmp/qom-get +++ b/scripts/qmp/qom-get @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 ## # QEMU Object Model test tools # diff --git a/scripts/qmp/qom-list b/scripts/qmp/qom-list index 03bda3446b..bb68fd65d4 100755 --- a/scripts/qmp/qom-list +++ b/scripts/qmp/qom-list @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 ## # QEMU Object Model test tools # diff --git a/scripts/qmp/qom-set b/scripts/qmp/qom-set index c37fe78b00..19881d85e9 100755 --- a/scripts/qmp/qom-set +++ b/scripts/qmp/qom-set @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 ## # QEMU Object Model test tools # diff --git a/scripts/qmp/qom-tree b/scripts/qmp/qom-tree index 1c8acf61e7..fa91147a03 100755 --- a/scripts/qmp/qom-tree +++ b/scripts/qmp/qom-tree @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 ## # QEMU Object Model test tools # --=20 2.21.3 From nobody Sat May 18 07:48:36 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589280038; cv=none; d=zohomail.com; s=zohoarc; b=N97q9hvWZo5QwT8nIwMJQn0t0VNeSYIATTsuzb5/MMI2LvJhfJf5NJYcpKz7naIE2TXkXB0NBfFJWDpOh4gt39WWMlcAEfBkTR+HQYBIyjGGOv2wZ6mJb9GpRm4F8ZatKSAfSAdXKHx3x5F9y1BUp82o4OIGR7nCUQDWLHtDd8w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589280038; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=FN/9Q7LqiT7yOKM3lyj2/vvjplGjuC96R8PuYHJ2hZI=; b=T5MFgsfL0HMfSrYYha3/pNCypaLbQMeyFl/u7iIpIGH/g712JnaMvQddgbwmXh13/Bi7FljGU6FJaWnLi4YBaJMp3dav99Bu5Yp9OaDC63JCnfxN9D7XDVA6ysn5QmRIX6INqj7oiPOXTM4L9anpZ1eYfAwwt0VuHQA24/LfYh4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1589280038593431.2890035986296; Tue, 12 May 2020 03:40:38 -0700 (PDT) Received: from localhost ([::1]:40202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYSKz-0007ud-6r for importer@patchew.org; Tue, 12 May 2020 06:40:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYSDh-0006vE-6Y for qemu-devel@nongnu.org; Tue, 12 May 2020 06:33:05 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:44778 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jYSDg-0007Vs-9X for qemu-devel@nongnu.org; Tue, 12 May 2020 06:33:04 -0400 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-431-V9GJXPDbOq6KNBOWe_sAGA-1; Tue, 12 May 2020 06:33:02 -0400 Received: by mail-wr1-f72.google.com with SMTP id r11so6723438wrx.21 for ; Tue, 12 May 2020 03:33:01 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id v131sm3712043wmb.27.2020.05.12.03.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 03:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589279583; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FN/9Q7LqiT7yOKM3lyj2/vvjplGjuC96R8PuYHJ2hZI=; b=gZIU0Ww45T4NOkydmmW8o3DwsdQh6YE2PlmO9wbkJqyEnzAuKPWPoEwvrsS1lUl/rv6YJ5 DVphspOgjdWRfOp4CSD1+e18naRMtqbZu96GAs2zlegfaTRv4ZvcFxU9T8AkG/aoo3uLmD PLQdUDyds05qxOmcLDkofGQjs75MuxQ= X-MC-Unique: V9GJXPDbOq6KNBOWe_sAGA-1 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=FN/9Q7LqiT7yOKM3lyj2/vvjplGjuC96R8PuYHJ2hZI=; b=eDtrdjuusINDUHjx4c+EmBPufvXKEmvMj7Sb1LdgFOavveAmTRL3W6lrHskjVgrwCB o6BybF36pAmJltRLl4w0A6YhyCpgU9gQ5ySALbSOAESWgnh2CXGN2p+6lzl/pVzGgjmz DA7D/wlp5D+ctKJiGQSMjBfq3tvbwIyT/GoOh98sfrVlzk6b/Nllwc9pVchcxiiZD9sK jervJmLrfPQO03P4iahKvE89whwmI9XyvfvyrpD+DF2LWqnI0h+wm7ReaRvn1lYi8AgB rQaryJr4VwgBaw1qTAXlCsDkWRjpssPKpxONj8yFnyCC4gKqUkI02QEP5r/bY4j2c9oy hd5g== X-Gm-Message-State: AGi0PuaJgOqK8115jMz1H76cgSSqTDzwrt08Dgu0PHmjbPQg0qUp0Z64 h7kgqo8WL8+AkOK74GmJKdImB+NanWorZjEQOdg6D4P2DQ1r3HC5PTlr+D1WJmW3L63nIvjalQw v0L/uvw0ushH8t38= X-Received: by 2002:a1c:a3c1:: with SMTP id m184mr18797672wme.91.1589279579783; Tue, 12 May 2020 03:32:59 -0700 (PDT) X-Google-Smtp-Source: APiQypLoVobmiuPPC5yzEHiFpfHm0s+HDrmev5jafrGVEC8Jo2mwsLRcy5dqC4UGFChZXKNb5cxJ4A== X-Received: by 2002:a1c:a3c1:: with SMTP id m184mr18797645wme.91.1589279579565; Tue, 12 May 2020 03:32:59 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 4/6] scripts/kvm/vmxcap: Use Python 3 interpreter and add pseudo-main() Date: Tue, 12 May 2020 12:32:36 +0200 Message-Id: <20200512103238.7078-5-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200512103238.7078-1-philmd@redhat.com> References: <20200512103238.7078-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.81; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 01:41:59 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , kvm@vger.kernel.org, qemu-block@nongnu.org, qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Marcelo Tosatti , Markus Armbruster , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Stefan Hajnoczi , Cleber Rosa , Paolo Bonzini , John Snow , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Paolo Bonzini Reviewed-by: John Snow Reviewed-by: Kevin Wolf --- scripts/kvm/vmxcap | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap index 971ed0e721..6fe66d5f57 100755 --- a/scripts/kvm/vmxcap +++ b/scripts/kvm/vmxcap @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # # tool for querying VMX capabilities # @@ -275,5 +275,6 @@ controls =3D [ ), ] =20 -for c in controls: - c.show() +if __name__ =3D=3D '__main__': + for c in controls: + c.show() --=20 2.21.3 From nobody Sat May 18 07:48:36 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589279777; cv=none; d=zohomail.com; s=zohoarc; b=UtX4YpgL0MH+VThdrgEsXqsP4rHIoX0f3e0i4pviFgoJEEu/Fl7Y2V/L/TGhZrTsf/UFyU0Gas1AhYvKqtKEjeciFDv3kdojaiJnZUsdBy7KaYjSd9rre8IYlMa1zRhEDsw6GJ60NkgsyAxCQowoHu3DNXyFv+SirtXvsHaShIM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589279777; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ds4l+7fZ3gMORFydzgGtrLwAaPpZWtJvEPP6Ecz3QgY=; b=k7XACot1tKPTvQrJqdOu1edBcvUSB/PGYV07sMfIxq55AgL/PuVr04kFS9zvRIh8Z4HytEFaX+zrKZDzYwu1umDx2VLSfaWyC+oGymQBEt6ln4TJPL44guOhOfQZjULnffHh3Uf0/rZbnOXW7EUA8PS54o12E+EvzaKUVjPavZQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1589279777700136.20778280554725; Tue, 12 May 2020 03:36:17 -0700 (PDT) Received: from localhost ([::1]:55452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYSGm-0002Bi-ER for importer@patchew.org; Tue, 12 May 2020 06:36:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYSDo-000723-1H for qemu-devel@nongnu.org; Tue, 12 May 2020 06:33:13 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:32528 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jYSDn-0007XL-5e for qemu-devel@nongnu.org; Tue, 12 May 2020 06:33:11 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-45-X0e9RpGZMG2pfP-q372Sew-1; Tue, 12 May 2020 06:33:06 -0400 Received: by mail-wr1-f71.google.com with SMTP id p13so1959437wrw.1 for ; Tue, 12 May 2020 03:33:06 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id w15sm21193073wrl.73.2020.05.12.03.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 03:33:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589279589; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ds4l+7fZ3gMORFydzgGtrLwAaPpZWtJvEPP6Ecz3QgY=; b=cuVlJ4uKZforlJTRyD5YnEYcrnrKm3byD3f9du77xbNrE5jvlPIoCD9geVGpyduUnkFwZY ww+CMZuvOgwfXHj5hQPbptfmILxxMZ/huid2X9FSARKo9Ck0QIqEkANpAEeqeUBfhSacir XTzokLhEQHFTH8zGcTUodJwmTU6lIHU= X-MC-Unique: X0e9RpGZMG2pfP-q372Sew-1 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=ds4l+7fZ3gMORFydzgGtrLwAaPpZWtJvEPP6Ecz3QgY=; b=CoTVuXJtCUS5dSFaLOtqc58H0RHDvr4MSK1gTvTOoz6O1n6PRM4SHx83qq3+OPefTL qVEXJrFSDfIPlcEkcoM9g59rSGZGiMAIgAUN7Iu+ry5yB8K6K3jJoTmyOr/dbFPxKu2T 9cmSghgBy7IBM8LEF8r0QyMllwC2s9ufvnwooClnDiZIcB/FcecSwPzhi1CStt3Kg5QO 1m4bt0+w/tnNFLFVXoKPoMzQkwi1rvlDHh2uGfTcYThv2PjUYEyskIWS8HTFMGQEjyWv 0Fx55jzRus/zOP5QyCTQiXgniW0Hqo1ooTAzg9jy83oEpzk5XqH/3jV2/kNqQnmwPhI5 TBWw== X-Gm-Message-State: AGi0PuZlU2FNAgk5TjApCyqWVF8ww1ft0lF5+VgCkApUnXX2hZsLTdiQ IPxI4wZXRFZodDKX7SSjzcKpLoUaMlrMYd//dKQWFHaY7jpy7yuEgl3Ll9Ffp2KvWOfMQcpAxxS dp1fdZMr26bPXtik= X-Received: by 2002:a1c:e4c1:: with SMTP id b184mr20242337wmh.4.1589279584719; Tue, 12 May 2020 03:33:04 -0700 (PDT) X-Google-Smtp-Source: APiQypI/laT2LsXrPFPVBKvEk7pWPnx7ibaLAWboB7OwBuZFbrY2ibbD5F30XX0MAqw3dY3xhmeCtA== X-Received: by 2002:a1c:e4c1:: with SMTP id b184mr20242317wmh.4.1589279584461; Tue, 12 May 2020 03:33:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 5/6] scripts/modules/module_block: Use Python 3 interpreter & add pseudo-main Date: Tue, 12 May 2020 12:32:37 +0200 Message-Id: <20200512103238.7078-6-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200512103238.7078-1-philmd@redhat.com> References: <20200512103238.7078-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 02:20:15 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , kvm@vger.kernel.org, qemu-block@nongnu.org, qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Marcelo Tosatti , Markus Armbruster , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Stefan Hajnoczi , Cleber Rosa , Paolo Bonzini , John Snow , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: John Snow Reviewed-by: Kevin Wolf --- scripts/modules/module_block.py | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/scripts/modules/module_block.py b/scripts/modules/module_block= .py index f23191fac1..2e7021b952 100644 --- a/scripts/modules/module_block.py +++ b/scripts/modules/module_block.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # # Module information generator # @@ -10,7 +10,6 @@ # This work is licensed under the terms of the GNU GPL, version 2. # See the COPYING file in the top-level directory. =20 -import sys import os =20 def get_string_struct(line): @@ -80,19 +79,21 @@ def print_bottom(fheader): #endif ''') =20 -# First argument: output file -# All other arguments: modules source files (.c) -output_file =3D sys.argv[1] -with open(output_file, 'w') as fheader: - print_top(fheader) +if __name__ =3D=3D '__main__': + import sys + # First argument: output file + # All other arguments: modules source files (.c) + output_file =3D sys.argv[1] + with open(output_file, 'w') as fheader: + print_top(fheader) =20 - for filename in sys.argv[2:]: - if os.path.isfile(filename): - process_file(fheader, filename) - else: - print("File " + filename + " does not exist.", file=3Dsys.stde= rr) - sys.exit(1) + for filename in sys.argv[2:]: + if os.path.isfile(filename): + process_file(fheader, filename) + else: + print("File " + filename + " does not exist.", file=3Dsys.= stderr) + sys.exit(1) =20 - print_bottom(fheader) + print_bottom(fheader) =20 -sys.exit(0) + sys.exit(0) --=20 2.21.3 From nobody Sat May 18 07:48:36 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589279717; cv=none; d=zohomail.com; s=zohoarc; b=LqOs5c6MGNF0Cx/62nVyYGpI51MBxGhucZWOalzjpv6KY139BFMgEI5iGDuK0vLPkEuiKJNj+wfByIKSuehJ2wL+NHNT0yh6tBWulQ3ktizl7zXajaBo5fb4p8WqiOan6THhC3Dwjf4A/s1Ge34NnI2KiCIcbKnza2LF7DGkYOY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589279717; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=eW6bfQ4PBPfgnbJADVXdHyk1e9elM2KC/4eDs8BhUVc=; b=AYg5am9s94bvv4LuULJNp6YB026PfUQMJ9178e7I6f/itYhZaQONK8SgQKozBk0P3yO+8xr1bGs5JpDn5zBiJTcghec38hMkoT+b2/bk+m2+gqfdGGxmvk0tuDI4T4ib81INeeUtwj22sbCM9UuaHWOJQXcELGIkzYBsdbGkADM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1589279717186237.33443564116635; Tue, 12 May 2020 03:35:17 -0700 (PDT) Received: from localhost ([::1]:52898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYSFn-00019O-M0 for importer@patchew.org; Tue, 12 May 2020 06:35:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYSDr-00072c-Te for qemu-devel@nongnu.org; Tue, 12 May 2020 06:33:17 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:59771 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jYSDr-0007Y5-9c for qemu-devel@nongnu.org; Tue, 12 May 2020 06:33:15 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-251-tVDQmIWMOXGiqwb4lNYmJw-1; Tue, 12 May 2020 06:33:10 -0400 Received: by mail-wr1-f71.google.com with SMTP id 90so6661902wrg.23 for ; Tue, 12 May 2020 03:33:10 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id y3sm21421190wrt.87.2020.05.12.03.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 03:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589279594; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eW6bfQ4PBPfgnbJADVXdHyk1e9elM2KC/4eDs8BhUVc=; b=aekZJm/RSMV6zYUAI3D82F9PQRsdxQAqlop/UIAnBsEz090tMhoTFGafStnN4wEEDikpf1 gSUG8g5G7T5+gQ8GG9MdSJoyE45qejWLbdtty4AnAsOaG2xyPCAJybKfWP+9w86k2cz7Cm jHgqQ4jaqozwTpS/A7jz3B5STdJERdc= X-MC-Unique: tVDQmIWMOXGiqwb4lNYmJw-1 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=eW6bfQ4PBPfgnbJADVXdHyk1e9elM2KC/4eDs8BhUVc=; b=E5k23rUJrCox/5josG+bd+UDA/wAvp+Tkx635wt9JEinQE47F+nA0jj1rpUgWma3Q+ x8Twfl/PTFucyDqLo8Q5qG/b//Ymw11MAFXGKfPDV3XbP6POY9jQ4WT3E6fGLVKNiSO/ hpB+ItK4Xmj6dQVexapZEMHjI8MAKwPWRIkmMRY0VKUnUL1s9uY6tqhwxYIg0ySLefY6 6UmP9l1F2eahcbn2TfdMzXLbWqepBHgUg2jN5S9pkxVB4lQiDX1DF4feqQ3lRn6MgIi9 vzMDSGs41gv/5wWdgSZEoKopHx5a4JFvX649eVoe8fOyNib3HWX/lHZ0RCnmAeiZjvUz YEkA== X-Gm-Message-State: AGi0Puayh/058QK/+dhO5hPlkOV5IQWdwmutLVNiGvcMMV1iysBnWflB glRUHOXv8Tbt3l0vB5Jj+S8X/zgTRLDXbs9daVonSeQy38EFQelx7/Zgktb9q2U9xXfgkx0CGyT ZYtYjJaJTGZ9uKXA= X-Received: by 2002:a5d:526f:: with SMTP id l15mr23961466wrc.367.1589279589597; Tue, 12 May 2020 03:33:09 -0700 (PDT) X-Google-Smtp-Source: APiQypKAy4y1dqGWaojxWwDczmxiyvjplmoiyIK4YplpgxZqaLOv7U32GRAJXJeKUMX6KRAwfFepYQ== X-Received: by 2002:a5d:526f:: with SMTP id l15mr23961434wrc.367.1589279589392; Tue, 12 May 2020 03:33:09 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 6/6] tests/migration/guestperf: Use Python 3 interpreter Date: Tue, 12 May 2020 12:32:38 +0200 Message-Id: <20200512103238.7078-7-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200512103238.7078-1-philmd@redhat.com> References: <20200512103238.7078-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.81; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 01:41:59 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , kvm@vger.kernel.org, qemu-block@nongnu.org, qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Marcelo Tosatti , Markus Armbruster , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Stefan Hajnoczi , Cleber Rosa , Paolo Bonzini , John Snow , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: John Snow Reviewed-by: Kevin Wolf --- tests/migration/guestperf-batch.py | 2 +- tests/migration/guestperf-plot.py | 2 +- tests/migration/guestperf.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/migration/guestperf-batch.py b/tests/migration/guestperf= -batch.py index cb150ce804..f1e900908d 100755 --- a/tests/migration/guestperf-batch.py +++ b/tests/migration/guestperf-batch.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # # Migration test batch comparison invokation # diff --git a/tests/migration/guestperf-plot.py b/tests/migration/guestperf-= plot.py index d70bb7a557..907151011a 100755 --- a/tests/migration/guestperf-plot.py +++ b/tests/migration/guestperf-plot.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # # Migration test graph plotting command # diff --git a/tests/migration/guestperf.py b/tests/migration/guestperf.py index 99b027e8ba..ba1c4bc4ca 100755 --- a/tests/migration/guestperf.py +++ b/tests/migration/guestperf.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # # Migration test direct invokation command # --=20 2.21.3