diff options
author | Xavier Fernandez <xav.fernandez@gmail.com> | 2017-05-05 16:39:34 +0200 |
---|---|---|
committer | Martin Kletzander <mkletzan@redhat.com> | 2017-05-17 09:33:46 +0200 |
commit | d8c880a10e4a170ac452dfb3da5a6f42b11e99c0 (patch) | |
tree | e47e6df7a194611cbed35088e47f31eff5ad5832 /libvirt-override-virStream.py | |
parent | 7695aa5a3bb86b768ac65ae46600cb020fc03f0f (diff) | |
download | libvirt-python-d8c880a10e4a170ac452dfb3da5a6f42b11e99c0.tar.gz |
Use better comparison in virStream.sendAll for Python 3
In Python 3, if the file is open in binary mode, @got will end up
being equal to b"" and b"" != "" in Python 3.
Diffstat (limited to 'libvirt-override-virStream.py')
-rw-r--r-- | libvirt-override-virStream.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 - if got == "": + if not got: break ret = self.send(got) |