From nobody Tue May 7 05:43:16 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.zoho.com; dkim=fail spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1493995524660386.83744215756235; Fri, 5 May 2017 07:45:24 -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 E60647AEAB; Fri, 5 May 2017 14:45:20 +0000 (UTC) Received: from colo-mx.corp.redhat.com (unknown [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 78C877B520; Fri, 5 May 2017 14:45:20 +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 592F65ED64; Fri, 5 May 2017 14:45:19 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v45Edk8h023103 for ; Fri, 5 May 2017 10:39:46 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7CE8660A9C; Fri, 5 May 2017 14:39:46 +0000 (UTC) Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.30]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 759EF17A82 for ; Fri, 5 May 2017 14:39:44 +0000 (UTC) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CB6A13D95E for ; Fri, 5 May 2017 14:39:43 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id v42so892781wrc.3 for ; Fri, 05 May 2017 07:39:43 -0700 (PDT) Received: from xaferiba.polyconseil.fr (poly-bot-46-193-244.35.cust.wifirst.net. [46.193.244.35]) by smtp.gmail.com with ESMTPSA id l1sm6501668wrl.15.2017.05.05.07.39.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 May 2017 07:39:41 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E60647AEAB Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com E60647AEAB Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aH1QO2kp" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CB6A13D95E Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=xav.fernandez@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com CB6A13D95E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FNzZf4ao4pFeJcWahXtKuow1DLg88EHSmtyKi1k3tPE=; b=aH1QO2kptAMOc4U5YOn56yvyh2OnsJ/1HrziHYK19Je0n08R4qd2LBKzNZ5v8Y/OHN hS+RVA8kK5O5aEiCP7Tdsd4fgy9Sh/5W1LCHFKuNJijwMGhX+CgAOWepJyDhrtsvFlsS qDoclnZsPMWIey9NHBD+XtigIS88eS7l8L8qawun18shbWuhw7iv6xl1oJTU8fgtGpJC aExvcpkOP2p37CpEvEI6nzwE+y7AIdNlsmTKcAIDRxfzf416HeObWCqDxZFi+c2yvxV4 Bxi5N4ODWmlBTr6QOELIdQNVKxd/tpnClKD2z5mq1LGATUO81VQvGXABjtVy22trwAL2 aU/Q== 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; bh=FNzZf4ao4pFeJcWahXtKuow1DLg88EHSmtyKi1k3tPE=; b=ertrTRqpAlFQiS7rOwl//uj49uaHMXin2aYavvzDQ/SO2lruLj6D4Igh9mSYNzwogJ ryr6yweYDUOmZy8sSlQNZRqBPXEiL+qRg2P3p6CbJXS/Ji4MGn2eo23l/9iM4P0fXw6K Vp68aHA4E93QsYxplNKBKY24jQ9XMLmRhdRVWP+Yt4Ai4ujBB+WhZzWvksvMVNkz8Ytm PIpRz3JttoHJlpTYiUSWODK5CIECq/AsEDKuXCCeEKW45HKpVttMY79iabbuh5xt3CCD 0urhlf6ie3LLDCLcMLlYumZ1Q6Mra+X3Ocvab0UhspHSTSGxEgp3RBLlYYP67smOYWLf x7eQ== X-Gm-Message-State: AN3rC/66fn0QyHWDk2itUgzWHrAAASjd80NG6rJJCvFWL8Ej1GYBU62g 6omoS6UNQRS9JhWaXaI= X-Received: by 10.223.174.200 with SMTP id y66mr26637119wrc.79.1493995182212; Fri, 05 May 2017 07:39:42 -0700 (PDT) From: Xavier Fernandez X-Google-Original-From: Xavier Fernandez To: libvir-list@redhat.com Date: Fri, 5 May 2017 16:39:34 +0200 Message-Id: <20170505143934.29147-1-xavier.fernandez@polyconseil.fr> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 05 May 2017 14:39:44 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 05 May 2017 14:39:44 +0000 (UTC) for IP:'209.85.128.194' DOMAIN:'mail-wr0-f194.google.com' HELO:'mail-wr0-f194.google.com' FROM:'xav.fernandez@gmail.com' RCPT:'' X-RedHat-Spam-Score: -1.61 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SORBS_SPAM, SPF_PASS) 209.85.128.194 mail-wr0-f194.google.com 209.85.128.194 mail-wr0-f194.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.30 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com X-Mailman-Approved-At: Fri, 05 May 2017 10:45:18 -0400 Cc: Xavier Fernandez Subject: [libvirt] [PATCH python] Fix virStream.sendAll for Python 3 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: , MIME-Version: 1.0 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.25]); Fri, 05 May 2017 14:45:22 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" In Python 3, if the file is open in binary mode, ``got`` will end up being equal to b"" and b"" !=3D "" in Python 3. --- libvirt-override-virStream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt-override-virStream.py b/libvirt-override-virStream.py index c328154..2e77cc7 100644 --- a/libvirt-override-virStream.py +++ b/libvirt-override-virStream.py @@ -83,7 +83,7 @@ pass raise e =20 - if got =3D=3D "": + if not got: break =20 ret =3D self.send(got) --=20 2.12.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list