From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558342290; cv=none; d=zoho.com; s=zohoarc; b=iV1aG8fV3RYuMouFTSD0ud91tr0FovRy4MBKxDAP9Q/OWmmNt+LqJMxyJG/iaUYvgoeNOMceoJNi4izCS+NHMjEp5TgRxU3v9N+Qcv7YckVtsZ9x9FvEO6Ba/Cd32gRt9SwdJZbbVICl5remNR5lHbU2h78Nf4jtaYno3O2BE2E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558342290; 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:ARC-Authentication-Results; bh=JH7ZzkCFI3al4XmcdeB8+5EhmDzqiBD8VNvQuV3eh+Y=; b=XiJ7sDZ3Xd3DrHeTENYBzaDJNBFlY+c8syM+eOXeTU3W/UvguBhiPgKOzJ1JhPzjQ53KcVh7TkDTcFbQXGxp3STiMENufAE4jIaNXBuyb4DSLQsOxu2CYI5rdDQeqPYuma6xGIgn37qvzPeHLpcty++pecs0kRjO/h/HOUMy068= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558342290280202.656858731331; Mon, 20 May 2019 01:51:30 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8911187638; Mon, 20 May 2019 08:32:30 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5A66E1001DD8; Mon, 20 May 2019 08:32:30 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 175CA1833004; Mon, 20 May 2019 08:32:30 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8W9K3012515 for ; Mon, 20 May 2019 04:32:09 -0400 Received: by smtp.corp.redhat.com (Postfix) id 280371001E73; Mon, 20 May 2019 08:32:09 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7B6C61001DD8; Mon, 20 May 2019 08:32:08 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:47 +0200 Message-Id: <20190520083202.29335-2-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 01/16] config-demo: Don't use "; " in the end of lines X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 20 May 2019 08:32:31 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: Daniel P. Berrang=C3=A9 --- examples/config-demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/config-demo.py b/examples/config-demo.py index ab3bc77..e585705 100644 --- a/examples/config-demo.py +++ b/examples/config-demo.py @@ -1,6 +1,6 @@ #!/usr/bin/env python2 =20 -from gi.repository import LibvirtGConfig; +from gi.repository import LibvirtGConfig =20 domain =3D LibvirtGConfig.Domain.new() domain.set_virt_type(LibvirtGConfig.DomainVirtType.KVM) --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341160; cv=none; d=zoho.com; s=zohoarc; b=GzzDJazYr4EzYWRCFkzMeLtMh+oSIDxt/FzYsqe4oKaHRjUTYfiGR9NcAHkP9bQjPKnBrPQ+dBKmrjNExUHpwoJo8ai6HT+y+27yEINP5HelQOa3BqxM+QMGOyLPPIB6d5VMSrmWA7Lv1gEr8tQWO7oydzcG9AdNJ0L6UVMdAv4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341160; 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:ARC-Authentication-Results; bh=X3PDlWIar/h5OqfZYAuGVmks5C/rBiKpbLy1/62Mvzs=; b=dWG1bCihkIoCzocV8vhZ5x5wqCnRRDlLec5RNtHR3kXnTQlma7nYjWsLXgt+TXKrAUL1/BNkDP3/fqWSD9OgM1JsXu93lS5Ci71vF4xn/Mbuvcv1+srqsOviayeNkLMkXfHZ2IVOPoFcog2Q5Qt0AJmRlCFvsw2LrDl8cHDkv1o= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 155834116081627.10532400008276; Mon, 20 May 2019 01:32:40 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1DC5C5AFD9; Mon, 20 May 2019 08:32:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EE07417CDE; Mon, 20 May 2019 08:32:33 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id AC0751833009; Mon, 20 May 2019 08:32:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WAhZ012527 for ; Mon, 20 May 2019 04:32:10 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1FB2D1001F5D; Mon, 20 May 2019 08:32:10 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7519A1001DD8; Mon, 20 May 2019 08:32:09 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:48 +0200 Message-Id: <20190520083202.29335-3-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 02/16] config-demo: Ensure the right LibvirtGConfig version gets loaded X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 20 May 2019 08:32:34 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: Daniel P. Berrang=C3=A9 --- examples/config-demo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/config-demo.py b/examples/config-demo.py index e585705..4e86742 100644 --- a/examples/config-demo.py +++ b/examples/config-demo.py @@ -1,5 +1,8 @@ #!/usr/bin/env python2 =20 +import gi + +gi.require_version('LibvirtGConfig', '1.0') from gi.repository import LibvirtGConfig =20 domain =3D LibvirtGConfig.Domain.new() --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341141; cv=none; d=zoho.com; s=zohoarc; b=mPg3xqg3k5dC7jb9pvGeUWCS4CkfT0gWrs44z9VWB+SGBI8IrxwN0jSOWmQnxWVbGjLaTR9XNpVXAAdzEkenTI9aOhNIhuJBEwvFCQVH6enAmM72IdRH/tbD68VLsBe4k426ZJQosCHf141c4x1YIplfToqoPNk1WPuJRjOAiVY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341141; 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:ARC-Authentication-Results; bh=DzZnHMdr8HDaiPKQ7V1jEv5rgvR8IUGhuReHa/g5Oe0=; b=iw3flB81RqZ48OoWbRGCHdzmuNEdGDoXsXl59e460bKXzdUioZ1WkYr20WHIVAvnrG700cC3n3YYnipwOmPFOPZejPipZO1ekXW7KdPvenXXOMtuDcQOoF1yaM7w2kplPFcCjblBh/x2bkcA9PGpZL4rIU+AzbPO7OxzH2QFN0o= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558341141835251.51774388770696; Mon, 20 May 2019 01:32:21 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B7B7730832D1; Mon, 20 May 2019 08:32:14 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CB7EA61F21; Mon, 20 May 2019 08:32:13 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C16E3E162; Mon, 20 May 2019 08:32:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WBaB012535 for ; Mon, 20 May 2019 04:32:11 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1B8FC1001F5D; Mon, 20 May 2019 08:32:11 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6DE721001DD8; Mon, 20 May 2019 08:32:10 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:49 +0200 Message-Id: <20190520083202.29335-4-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 03/16] config-demo: Use print() in a py3 compatible way X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Mon, 20 May 2019 08:32:15 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio --- examples/config-demo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/config-demo.py b/examples/config-demo.py index 4e86742..de1db74 100644 --- a/examples/config-demo.py +++ b/examples/config-demo.py @@ -74,7 +74,7 @@ pty =3D LibvirtGConfig.DomainChardevSourcePty.new() console.set_source(pty) domain.add_device(console) =20 -print domain.to_xml() +print(domain.to_xml()) =20 =20 pool =3D LibvirtGConfig.StoragePool.new() @@ -95,7 +95,7 @@ pool_target.set_path("/dev/disk/by-path") pool_target.set_permissions(perms) pool.set_target(pool_target) =20 -print pool.to_xml() +print(pool.to_xml()) =20 =20 vol =3D LibvirtGConfig.StorageVol.new() @@ -107,4 +107,4 @@ vol_target.set_format("qcow2") vol_target.set_permissions(perms) vol.set_target(vol_target) =20 -print vol.to_xml() +print(vol.to_xml()) --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341142; cv=none; d=zoho.com; s=zohoarc; b=j8OL8PjR/BA0/fvBsHr4bbrA/0kryoLGUNpjNtk5q97zv+a0Rs24nTmoK5Tb0Q9kDywuJwiazmwuR6AjwcS9xp9XHblTblH5RbMAqEAGyDSCIZ+JE7gj/tlMp5qhQg8tNapnPdS6PFZ3rX2oe/oii7DmLPgGtxcM5zUFJDvr7Gs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341142; 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:ARC-Authentication-Results; bh=sGlw0fGGDuKs44PUqWSEg5qniEHXh+Fp7EBHpaSYgcc=; b=KPWSQXCy4YWyTGNur98QIdqmYRe9eE0eMJtFJcZuvgQ36XGmHtuRU1elTPm+kwn3G5CP+bcBAvYFOHV3mnZ+2KDkL57D7u/qB9QJbQIBHuLNHLK0A8xDfhfCHhJq2xvL65EPpw1uX/U/D5NOCTOEwKr8hjxVYrDqtnThXhYS51o= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558341142633506.03464342931477; Mon, 20 May 2019 01:32:22 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 566C2C057E65; Mon, 20 May 2019 08:32:15 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 27DF560E37; Mon, 20 May 2019 08:32:15 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E3343E162; Mon, 20 May 2019 08:32:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WCvT012542 for ; Mon, 20 May 2019 04:32:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 12C581001DD8; Mon, 20 May 2019 08:32:12 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 67B35100200A; Mon, 20 May 2019 08:32:11 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:50 +0200 Message-Id: <20190520083202.29335-5-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 04/16] config-demo: Use octal when setting mode X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 20 May 2019 08:32:15 +0000 (UTC) Basically, just change 0744 to 0o744 in order to be compatible with python3. Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: Daniel P. Berrang=C3=A9 --- examples/config-demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/config-demo.py b/examples/config-demo.py index de1db74..506afb9 100644 --- a/examples/config-demo.py +++ b/examples/config-demo.py @@ -87,7 +87,7 @@ pool.set_source(pool_source) perms =3D LibvirtGConfig.StoragePermissions.new() perms.set_owner(1001) perms.set_group(1005) -perms.set_mode(0744) +perms.set_mode(0o744) perms.set_label("virt_image_t") =20 pool_target =3D LibvirtGConfig.StoragePoolTarget.new() --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558342364; cv=none; d=zoho.com; s=zohoarc; b=lxOIpt735cJkGAGW9Yg8WfP6+fEbuU8EX6dLeLwMs4TCnA1WGFq/R+cPy5ovhGYAUYdb+88Hj8/PYtF0Dk1UJYkF8E8GEbwhOUIPvM7nNAHbVrmGmA5OOy8Z/VxbJKiB7ONASqNnklCnNWAILCQaOS7tRapbOcoskNtLYEyuyZo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558342364; 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:ARC-Authentication-Results; bh=R2lt6aTm45bAlKtEW9NqQw/CMMsRtNSCopqf3tCkQyc=; b=ANS5Yid+R9xC1vZqEKMmx9f2q1Kbt+UOAMouS3KJJfoanKmrozmqzNYJ4PQqjireD6RCf68Daur2omoiud+9h1/6VbwfUQ4yUaA+lFtITxOBRuBTFfAEH1iyN2VSUh8dUJ63WRx2DtfITng/7GmMvMqYpZwvEc3Grla3cPsCLsg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558342364454755.6505482244045; Mon, 20 May 2019 01:52:44 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8867680F79; Mon, 20 May 2019 08:32:30 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5843B891A; Mon, 20 May 2019 08:32:30 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1753B1833003; Mon, 20 May 2019 08:32:30 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WDOI012555 for ; Mon, 20 May 2019 04:32:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0FEEB1001F5D; Mon, 20 May 2019 08:32:13 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 60B4B1001E73; Mon, 20 May 2019 08:32:12 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:51 +0200 Message-Id: <20190520083202.29335-6-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 05/16] config-demo: Change she-bang line to use python3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 20 May 2019 08:32:31 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio --- examples/config-demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/config-demo.py b/examples/config-demo.py index 506afb9..8a1d293 100644 --- a/examples/config-demo.py +++ b/examples/config-demo.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 =20 import gi =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558342399; cv=none; d=zoho.com; s=zohoarc; b=gQ6FWhZSvrdTTUFBY5y9SVgXlMZlyaAC3QUGB8hVhlOJsVjkwHFfM1OzbyQ7ucWDJXrBCibtklOurp71/zsM2NJlC4BkZi3bIHB80FiC3TW8/xAqJyv9a8lbF5BgjIzQY9j+hQzxbmdYdgEt2hv5AXffAaw0IyPq82SDjs9O/HQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558342399; 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:ARC-Authentication-Results; bh=qM/pZEbJweGbVvq3Hj70WelEdJ+vQ0qMxcQAp/6a0MU=; b=Z/SVqYS9YEgO/bb/aIV3XqeeTYLOxffM2FfWNXe+iYP/biQWBB5gSN9Lih+61KOUq4Uv6gKCc1RnMyswK157L4PDayNFI2AesgD9FLQMcshcso4J9AAj9HPgoXQkurOlvbg5jBaVOH94q7BidZ5mULeem/ou68TE3Nh6zd3keCs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558342399914255.04351798400455; Mon, 20 May 2019 01:53:19 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3C49E87632; Mon, 20 May 2019 08:32:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0C52F1001DC7; Mon, 20 May 2019 08:32:34 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id BFF86E167; Mon, 20 May 2019 08:32:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WEYA012562 for ; Mon, 20 May 2019 04:32:14 -0400 Received: by smtp.corp.redhat.com (Postfix) id 041301001F5D; Mon, 20 May 2019 08:32:14 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 595D41001DD8; Mon, 20 May 2019 08:32:13 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:52 +0200 Message-Id: <20190520083202.29335-7-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 06/16] conn-test: Don't use "; " in the end of lines X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 20 May 2019 08:32:34 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: Daniel P. Berrang=C3=A9 --- examples/conn-test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/conn-test.py b/examples/conn-test.py index e3b1b99..8cd489e 100644 --- a/examples/conn-test.py +++ b/examples/conn-test.py @@ -1,10 +1,10 @@ #!/usr/bin/env python2 =20 -from gi.repository import LibvirtGObject; -from gi.repository import Gio; -from gi.repository import Gtk; +from gi.repository import LibvirtGObject +from gi.repository import Gio +from gi.repository import Gtk =20 -LibvirtGObject.init_object_check(None); +LibvirtGObject.init_object_check(None) =20 conn =3D LibvirtGObject.Connection(uri=3D"test:///default") canc =3D Gio.Cancellable() --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341162; cv=none; d=zoho.com; s=zohoarc; b=QbKsiyGuhWEhBK1Tkm0J6IM8eKaPDAqLSQ4WzmvhR0ZOx5dqTsNXcOZv0HZlKZ1ZJmo4AguzWbKq/zhvAvnltPvRuCPgLt9Ws8pBzJKBPC1ggxCrzGFuDwh2wEe6rggA1VD2bwfI60TgeYfdZkuHfrhoz2oQveObmns/Vd1uShA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341162; 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:ARC-Authentication-Results; bh=GiqFg8KZYHGiQCzewvtscAFEX0HfcFjiqt5bW6bOJNE=; b=RthGDlnJeEey88qKxEC0Ah+mMBs6eKlIe1E5hhjsOmralu10Jo2ZimTmbDKrpopGVrhhKR+TFjFDPKRwobndF8MZI6zCaLgyRT68DvCRVpxEDk2oB1YJ2kXM2++7Ks5Oto226fABe9PWpF6Hxe/1bmE2xFpbl+6ddzkEwzX2sqs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558341162033380.26709382720026; Mon, 20 May 2019 01:32:42 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B2C88882FF; Mon, 20 May 2019 08:32:37 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 848E760CAC; Mon, 20 May 2019 08:32:37 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3DFDDE16D; Mon, 20 May 2019 08:32:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WEHs012573 for ; Mon, 20 May 2019 04:32:15 -0400 Received: by smtp.corp.redhat.com (Postfix) id F19691001DD8; Mon, 20 May 2019 08:32:14 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 526AD100200D; Mon, 20 May 2019 08:32:14 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:53 +0200 Message-Id: <20190520083202.29335-8-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 07/16] conn-test: Ensure the right versions of LibvirtGObject and Gtk get loaded X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 20 May 2019 08:32:38 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio --- examples/conn-test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/conn-test.py b/examples/conn-test.py index 8cd489e..100f5f5 100644 --- a/examples/conn-test.py +++ b/examples/conn-test.py @@ -1,7 +1,11 @@ #!/usr/bin/env python2 =20 +import gi + +gi.require_version('LibvirtGObject', '1.0') from gi.repository import LibvirtGObject from gi.repository import Gio +gi.require_version('Gtk', '3.0') from gi.repository import Gtk =20 LibvirtGObject.init_object_check(None) --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341164; cv=none; d=zoho.com; s=zohoarc; b=dAVu77zFEW4DTYAfPRghp8N1jhHGJunoIMf+sdDKYuMb7fO0XtbCAi+c+33bhQWkuhRzXoDl9qHcGaejRqnaCTY9ipx2FOGqQWdUnijBMHAFZg1Teo9v0fZbXqL74iM8jz20fFY9eOyROFjGhv9/nGTtUToQKnMnwpCc2fRAs2w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341164; 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:ARC-Authentication-Results; bh=2naPe3vycEqE5hh7aE6faMHMW+h2ZsjUDKEoWSrM4C4=; b=Fv7qUudpdfkAmRuXBCriJABK+SDLW+n8tzFD3x0BU13gFH2o7nVAy0Ap0El4ERGyG/jUDVqgxJ8aAjb2pTAF6OV0Y8IwZHtczxvVTgAPeLNpU9t8649o2X3bp6wk5S0a+CDGJ0B4+l8+lWmmZolkJ/I7YraM0S4RML8RKTOehY8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558341164742718.1879656244826; Mon, 20 May 2019 01:32:44 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 582E6C13070F; Mon, 20 May 2019 08:32:41 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 25898176B3; Mon, 20 May 2019 08:32:41 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C8B401833010; Mon, 20 May 2019 08:32:40 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WFFa012587 for ; Mon, 20 May 2019 04:32:15 -0400 Received: by smtp.corp.redhat.com (Postfix) id EA3D41001E73; Mon, 20 May 2019 08:32:15 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4B157100200D; Mon, 20 May 2019 08:32:15 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:54 +0200 Message-Id: <20190520083202.29335-9-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 08/16] conn-test: Use print() in a py3 compatible way X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 20 May 2019 08:32:42 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio --- examples/conn-test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/conn-test.py b/examples/conn-test.py index 100f5f5..3b680b8 100644 --- a/examples/conn-test.py +++ b/examples/conn-test.py @@ -33,9 +33,9 @@ def done(conn, result, data): try: conf.validate() =20 - print "Document is valid according to %s" % conf.get_schem= a() + print ("Document is valid according to %s" % conf.get_sche= ma()) except Exception, e: - print "Document is not valid according to %s: %s: %s" % (c= onf.get_schema(), str(e), str(type(e))) + print ("Document is not valid according to %s: %s: %s" % (= conf.get_schema(), str(e), str(type(e)))) =20 xml =3D conf.to_xml() print ("XML " + xml) --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341161; cv=none; d=zoho.com; s=zohoarc; b=IWSNRRV3p04KR+2dQKKfgYICbxtHvXo1QdzbWWdTDO09xCldQcfZZjEy8nWuSwoktyLUG8uJJM0PHJMxIqUaV0iXK1KLa/YcWWbIjI9gGONHKlw8v49Hei5k5tReOBP4G6jPSpZTDTGG4ShC8briFX8eOUnq7U/Wmpzlc30ZwP8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341161; 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:ARC-Authentication-Results; bh=Qq0M+uW0a5a+df7h1AYmH0scA3TJK0km9IKt/0RfVAs=; b=nRT124bFtpI+snoKqI8Nmhv42fXo5MMJKobu5avy90PEbRW4ObJge5lnLNhi1uhAy3aq+DUKsZbvsXb6DJSP6clkN6Y5ApHGWOks8/T5b5Jzu3sgJy0dIGAwhc60QqTd+ioVBjE88QlYyoOvSlXZs7BeeSD1cbif0xomeTkUqSQ= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558341161395671.3613993749067; Mon, 20 May 2019 01:32:41 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B989E30917EF; Mon, 20 May 2019 08:32:37 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 89EF35B084; Mon, 20 May 2019 08:32:37 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3CF67183300B; Mon, 20 May 2019 08:32:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WGSl012592 for ; Mon, 20 May 2019 04:32:16 -0400 Received: by smtp.corp.redhat.com (Postfix) id E303A1001DD8; Mon, 20 May 2019 08:32:16 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 440E6100200D; Mon, 20 May 2019 08:32:16 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:55 +0200 Message-Id: <20190520083202.29335-10-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 09/16] conn-test: Handle exceptions in a py3 compatible way X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Mon, 20 May 2019 08:32:38 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: Daniel P. Berrang=C3=A9 --- examples/conn-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/conn-test.py b/examples/conn-test.py index 3b680b8..5f60e92 100644 --- a/examples/conn-test.py +++ b/examples/conn-test.py @@ -34,7 +34,7 @@ def done(conn, result, data): conf.validate() =20 print ("Document is valid according to %s" % conf.get_sche= ma()) - except Exception, e: + except Exception as e: print ("Document is not valid according to %s: %s: %s" % (= conf.get_schema(), str(e), str(type(e)))) =20 xml =3D conf.to_xml() --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341165; cv=none; d=zoho.com; s=zohoarc; b=EmPniRLBj+rPxhR9oy9vAsD/eev4ccB5IRM8MIrMteyeoR1uXDC7Y8DMBZMzP73K4MvTA1cpkRqR9lKfz8L67piDxn041CDTaLopshd0J/RTSZKS1QJ4hYgDu3jEFo85iVGZFOGKg1AUtyXyYgOSuQ7HLBgW/Tfq10bpCGTY0BA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341165; 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:ARC-Authentication-Results; bh=hs+LeeJyRAIvo1eG6HDSG7yc/Vn/L8RPiahcf01SRQ8=; b=Z/QbHhIVCtvYm2NIq+hZwmbU/COasf3qPQ+F7jMSfe02XUwQ4lgpR2+Hh4HQ0hy2Zf586aXSW2bE9OIuHXUnwg/ggOfFi46ro5T4/H28y+sz2WyxDA7GS0WDoj5U7ZNinF1eKbzpvFMyMBTqRAioifOMNxTY8+7M2OOmNHJwH10= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558341165836799.7052881691837; Mon, 20 May 2019 01:32:45 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6172630832E3; Mon, 20 May 2019 08:32:41 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 31240643DC; Mon, 20 May 2019 08:32:41 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id D3116E16E; Mon, 20 May 2019 08:32:40 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WHFM012598 for ; Mon, 20 May 2019 04:32:17 -0400 Received: by smtp.corp.redhat.com (Postfix) id DD11A1001DD8; Mon, 20 May 2019 08:32:17 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3CFE61001E73; Mon, 20 May 2019 08:32:17 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:56 +0200 Message-Id: <20190520083202.29335-11-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 10/16] conn-test: Change sha-bang line to use python3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Mon, 20 May 2019 08:32:42 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio --- examples/conn-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/conn-test.py b/examples/conn-test.py index 5f60e92..93a0085 100644 --- a/examples/conn-test.py +++ b/examples/conn-test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 =20 import gi =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341267; cv=none; d=zoho.com; s=zohoarc; b=TbQlrYpDUf+KNEbOFe9mP/ywIB4ilMYascyOzlSGN+JCpLBHeZn1FOqJ9tkkj7+dJuTcFHRZfj07YbpJAMogvUNV2zAVrO2bdp/h58iWdiSItE6+MBKKCkj2skbUu/ZFx45O/svKnFyBOMJBnZtNzjOUiKRZAX/X9i1argg0J1U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341267; 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:ARC-Authentication-Results; bh=aZHbBaP4aHWRuBNG68As6bf38g3eNRqRS2ZzxauHRio=; b=BsEAyxqMfFl6nUTpGY2U6V5M6gh7OElk/SsWUCUQf7efDTA7lO1Vxs5uZpdJfPeX/Ao28xNO58A9c4jsLagV/usuTAF7hOPMzpKTXx7x9WkS0sZadkfyV37iENOmeSg7Uk5B/Q0pK6sfD7aGSk3A1tORUstX54E2uP0W7FeqM40= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 155834126737487.76871799656465; Mon, 20 May 2019 01:34:27 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 78FCFC028343; Mon, 20 May 2019 08:32:36 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4E81F61B91; Mon, 20 May 2019 08:32:36 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0FF60E168; Mon, 20 May 2019 08:32:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WK0X012623 for ; Mon, 20 May 2019 04:32:20 -0400 Received: by smtp.corp.redhat.com (Postfix) id D3BAC1001E63; Mon, 20 May 2019 08:32:20 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 322901001DD8; Mon, 20 May 2019 08:32:18 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:57 +0200 Message-Id: <20190520083202.29335-12-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 11/16] event-test: LibvirtGLib.init() takes (at maximum) 1 argment X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 20 May 2019 08:32:36 +0000 (UTC) As 2 argments have been passed, whenever we try to run event-test we'd get: ``` Using uri:qemu:///system Traceback (most recent call last): File "event-test.py", line 62, in main() File "event-test.py", line 51, in main LibvirtGLib.init(0, "") TypeError: LibvirtGLib.init() takes exactly 1 argument (2 given) ``` Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: Daniel P. Berrang=C3=A9 --- examples/event-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/event-test.py b/examples/event-test.py index 2b25e0a..1f7d97e 100644 --- a/examples/event-test.py +++ b/examples/event-test.py @@ -48,7 +48,7 @@ def main(): =20 print "Using uri:" + uri =20 - LibvirtGLib.init(0, "") + LibvirtGLib.init() LibvirtGLib.event_register() vc =3D libvirt.open(uri) =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341163; cv=none; d=zoho.com; s=zohoarc; b=Ct43UHRwu9190ibV6cjKOzfkpS1PKpECtAwHnBBxuTEFAlvwgavy0kl05OGxMm1qZSvAWL8SeU3cLhfUhdYYQ009L8xCi7Swke6ciXdA82AMj+qtk6lkZdb0FEVn5rVqsyt9dI7kxEw+cbUUdP2+OYUBMwTeVzooq+KFGdymjzM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341163; 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:ARC-Authentication-Results; bh=NUA/ZUcSt+opgTwpoLu85wYI3wSNrNsgi9pwh5xJjtg=; b=LxrMcOBZN380ORwL3rhbgOUKBMu18nHfHPgjsRbqEjd7rEb0uADXeqG2xJFSctj4aTDwgLvlqYaD8kD1794x/h3fYmjlefTGWzI49Gxy2dynKNiWsp6BtyLAIU+tIZb+zhuA0ZGDGoARywrcvWJsoYAOmfvE8GsINCBh9nsE9SY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558341163749726.0967533108746; Mon, 20 May 2019 01:32:43 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 048AB7EBBD; Mon, 20 May 2019 08:32:40 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D01B7643D7; Mon, 20 May 2019 08:32:39 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 985A0183300C; Mon, 20 May 2019 08:32:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WQTo012635 for ; Mon, 20 May 2019 04:32:26 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3DB181001DD8; Mon, 20 May 2019 08:32:26 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 63B551001E73; Mon, 20 May 2019 08:32:21 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:58 +0200 Message-Id: <20190520083202.29335-13-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 12/16] event-test: Don't use "; " in the end of lines X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 20 May 2019 08:32:40 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: Daniel P. Berrang=C3=A9 --- examples/event-test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/event-test.py b/examples/event-test.py index 1f7d97e..e1e8435 100644 --- a/examples/event-test.py +++ b/examples/event-test.py @@ -5,7 +5,7 @@ import libvirt import getopt import sys =20 -from gi.repository import LibvirtGLib; +from gi.repository import LibvirtGLib =20 def eventToString(event): eventStrings =3D ( "Added", @@ -15,8 +15,8 @@ def eventToString(event): "Resumed", "Stopped", "Saved", - "Restored" ); - return eventStrings[event]; + "Restored" ) + return eventStrings[event] =20 def myDomainEventCallback1 (conn, dom, event, detail, opaque): print "myDomainEventCallback1 EVENT: Domain %s(%s) %s" % (dom.name(), = dom.ID(), eventToString(event)) --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341169; cv=none; d=zoho.com; s=zohoarc; b=j1UWnPIBNda/5mEu/Yx0YpO4Efpkz6lycnyOdNoJJpgTlvxirKIfxrfHZY0rDLwij+VyP10DMb6NKj8e83njQcktvpZNF8Sm535u0wxKfxFXSuwT9P2GMQPUVzNMVBI3RkFW4muL3bGLNo6Fv7VX1fVsV3fKkBzg9mW8BxiJqPU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341169; 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:ARC-Authentication-Results; bh=erMcVnuq3aXMkR//T+0ap1XvwjZvvHmQlqBPr+G/JNY=; b=BB2OWFyZxhmpMT4qT65m69Bgm2bR7GyQ3b/VII6wkso6UMvlw3a2Jo/20wZYU4ARim90fLiKLqB4QL7JQISOF+HXE6HdM7cXFB3l1KDtJWDoIKUSOKHaQwY4vv0UOlKIGkVpKaCtU9XlP+3wmHpQPIiMpGbvVJHSe5l9tHlOwac= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558341169328778.9854310447839; Mon, 20 May 2019 01:32:49 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2FDC888306; Mon, 20 May 2019 08:32:45 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 062E760F8E; Mon, 20 May 2019 08:32:45 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B77F4E172; Mon, 20 May 2019 08:32:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WRRq012643 for ; Mon, 20 May 2019 04:32:27 -0400 Received: by smtp.corp.redhat.com (Postfix) id 371821001DDD; Mon, 20 May 2019 08:32:27 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8B69B1001DD8; Mon, 20 May 2019 08:32:26 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:31:59 +0200 Message-Id: <20190520083202.29335-14-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 13/16] event-test: Ensure the right versions of LibvirtGLib and Gtk get loaded X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 20 May 2019 08:32:45 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: Daniel P. Berrang=C3=A9 --- examples/event-test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/event-test.py b/examples/event-test.py index e1e8435..7668b56 100644 --- a/examples/event-test.py +++ b/examples/event-test.py @@ -1,10 +1,14 @@ #!/usr/bin/env python2 =20 +import gi + +gi.require_version('Gtk', '3.0') from gi.repository import Gtk import libvirt import getopt import sys =20 +gi.require_version('LibvirtGLib', '1.0') from gi.repository import LibvirtGLib =20 def eventToString(event): --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341168; cv=none; d=zoho.com; s=zohoarc; b=C+6fz6rG5XiTLpvXMxSdS/EeUwmypSpCeuqz3rzuHy7BIpAJZDNmXF30eh5co3bvLCR6tXF48WE9mfkRYVuSfSaGerF9tY5yEn5C3JF5D6TIzoWEI9C5hdQfgrr6cdsTv3mqXK2d13C9j+jJi1jW9v7xfYKtLPlMn/hqURecQxk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341168; 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:ARC-Authentication-Results; bh=nZLPzeD4i88UiG20K3XrEDdRyks/GpWPut1LqxCoiWA=; b=TXM6LoTGgNt80iftM+VKYpW/O/L5QLXhtmDFdEdm6Y1MYDI/MUsOHaJyeYhX+xX9xZMWi6+IXbGcBlrK5e/EtF15ApDRu4pLzOG/Xj15OOL3231PUrXvvVpXvIstpUU6OpEx1GlTot6pyN7RQy5BOelsuz9ww7hFWgCQNb5UQYo= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558341168613669.2284208326499; Mon, 20 May 2019 01:32:48 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3B5BE3092674; Mon, 20 May 2019 08:32:45 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 145F6176B4; Mon, 20 May 2019 08:32:45 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C6C65E173; Mon, 20 May 2019 08:32:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WSLo012653 for ; Mon, 20 May 2019 04:32:28 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3116910027C2; Mon, 20 May 2019 08:32:28 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 845971001E63; Mon, 20 May 2019 08:32:27 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:32:00 +0200 Message-Id: <20190520083202.29335-15-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 14/16] event-test: Use print() in a py3 compatible way X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Mon, 20 May 2019 08:32:45 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: Daniel P. Berrang=C3=A9 --- examples/event-test.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/event-test.py b/examples/event-test.py index 7668b56..f847e57 100644 --- a/examples/event-test.py +++ b/examples/event-test.py @@ -23,21 +23,21 @@ def eventToString(event): return eventStrings[event] =20 def myDomainEventCallback1 (conn, dom, event, detail, opaque): - print "myDomainEventCallback1 EVENT: Domain %s(%s) %s" % (dom.name(), = dom.ID(), eventToString(event)) + print("myDomainEventCallback1 EVENT: Domain %s(%s) %s" % (dom.name(), = dom.ID(), eventToString(event))) =20 def myDomainEventCallback2 (conn, dom, event, detail, opaque): - print "myDomainEventCallback2 EVENT: Domain %s(%s) %s" % (dom.name(), = dom.ID(), eventToString(event)) + print("myDomainEventCallback2 EVENT: Domain %s(%s) %s" % (dom.name(), = dom.ID(), eventToString(event))) =20 def usage(): - print "usage: "+os.path.basename(sys.argv[0])+" [uri]" - print " uri will default to qemu:///system" + print("usage: "+os.path.basename(sys.argv[0])+" [uri]") + print(" uri will default to qemu:///system") =20 def main(): try: opts, args =3D getopt.getopt(sys.argv[1:], "h", ["help"] ) except getopt.GetoptError, err: # print help information and exit: - print str(err) # will print something like "option -a not recogniz= ed" + print(str(err)) # will print something like "option -a not recogni= zed" usage() sys.exit(2) for o, a in opts: @@ -50,7 +50,7 @@ def main(): else: uri =3D "qemu:///system" =20 - print "Using uri:" + uri + print("Using uri:" + uri) =20 LibvirtGLib.init() LibvirtGLib.event_register() --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341166; cv=none; d=zoho.com; s=zohoarc; b=SdIWLuPX6B95Q44rL/7rkGOdQEh3f9ZcsDVigK2FZErkfAGDWZfh6K8mPlInW7aKcFD6zuaitWj4BiKDWs9IEK3Q5RDCbFDBW3MxP7HO8To2WtEzH36ZnVG0EalKSOPdoFmULMopzM22eS29ORW/6KkvtN+qd6/VoUNYV+VR0OY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341166; 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:ARC-Authentication-Results; bh=ZuyEfYwiQpSl5p7EDBxUzFs8yPfPQF7CBsQOBguC0ac=; b=g7aP3GJuvDdWEbDoj4AepYsZNxbk2pKETtCNulmyUHubqIfqJbmVgEqetBD5XLiRlhekU2XYmJXP6xbyr/WJSAA2q/9xRwEn4AM7Z2Lcru/NF/g9n7f70x280myrf2gXC2kjNtx6XTBv3dn6rNIAywMl/VNszbsuFYus5H0aMAA= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558341166832861.3600061137867; Mon, 20 May 2019 01:32:46 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0A520309266B; Mon, 20 May 2019 08:32:44 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D425A19744; Mon, 20 May 2019 08:32:43 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 917701833013; Mon, 20 May 2019 08:32:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WTW5012665 for ; Mon, 20 May 2019 04:32:29 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2A5651001F5D; Mon, 20 May 2019 08:32:29 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7F31710027C2; Mon, 20 May 2019 08:32:28 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:32:01 +0200 Message-Id: <20190520083202.29335-16-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 15/16] event-test: Handle exceptions in a py3 compatible way X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Mon, 20 May 2019 08:32:44 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: Daniel P. Berrang=C3=A9 --- examples/event-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/event-test.py b/examples/event-test.py index f847e57..efa8f6d 100644 --- a/examples/event-test.py +++ b/examples/event-test.py @@ -35,7 +35,7 @@ def usage(): def main(): try: opts, args =3D getopt.getopt(sys.argv[1:], "h", ["help"] ) - except getopt.GetoptError, err: + except getopt.GetoptError as err: # print help information and exit: print(str(err)) # will print something like "option -a not recogni= zed" usage() --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 21:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558341171; cv=none; d=zoho.com; s=zohoarc; b=ekufGIAAcCvnLNjlPpNXzg4NDXHxSBi/F55azV9rsSd0dvbaLx6q/uHTlbNBQK3mo7mZ9W136RdYyeNlzgtESiq7YBofmxHYllBdEVF5LAV4b0D8RzVUaYc9GKd6NF8kI2TYvRtELG3lWkj7/GZM9TTK8QztbfOJmHkuy0QUcSI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558341171; 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:ARC-Authentication-Results; bh=7uAaD/Te26ho3yQ1xLHD+nfM2QfGobgEloxg3euhLF0=; b=N2DFn2kWefrocc8JQH/CwvxnGQCQTK65/l7nwEjdYIRnzaNtJBCQERti0zn09QHW9S7fzSNm84NpbkiL2kSU+ql1jgL5Ox8YgFDO6Tpv/z9bA1prVe53F0tq/D5WSeCvJ1G8Ekfvuiy799wo/0fq1bJSa7sE4iu9zpKPEO0cH7c= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558341171268273.72987425560586; Mon, 20 May 2019 01:32:51 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 998F63082E5A; Mon, 20 May 2019 08:32:47 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 70BFE61B99; Mon, 20 May 2019 08:32:47 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 354741833017; Mon, 20 May 2019 08:32:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4K8WUWM012675 for ; Mon, 20 May 2019 04:32:30 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2338E1001F5D; Mon, 20 May 2019 08:32:30 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 77B55100200A; Mon, 20 May 2019 08:32:29 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Mon, 20 May 2019 10:32:02 +0200 Message-Id: <20190520083202.29335-17-fidencio@redhat.com> In-Reply-To: <20190520083202.29335-1-fidencio@redhat.com> References: <20190520083202.29335-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 16/16] event-test: Change sha-bang line to use python3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Mon, 20 May 2019 08:32:48 +0000 (UTC) Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: Daniel P. Berrang=C3=A9 --- examples/event-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/event-test.py b/examples/event-test.py index efa8f6d..9e1d909 100644 --- a/examples/event-test.py +++ b/examples/event-test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 =20 import gi =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list