summaryrefslogtreecommitdiff
path: root/libvirt-override-virStream.py
diff options
context:
space:
mode:
authorPhilipp Hahn <hahn@univention.de>2018-11-21 09:08:32 +0100
committerDaniel Berrange <berrange@redhat.com>2020-08-18 09:48:25 +0000
commit109b257fe528a1e0c132a649abfda75ef54727b5 (patch)
treeef5c25005ac62c0d377ded8e0ce457580f76ae36 /libvirt-override-virStream.py
parent06222739f7dd332f77744a5ddf2883624747dfa3 (diff)
downloadlibvirt-python-109b257fe528a1e0c132a649abfda75ef54727b5.tar.gz
stream: Simplify boolean condition
Signed-off-by: Philipp Hahn <hahn@univention.de>
Diffstat (limited to 'libvirt-override-virStream.py')
-rw-r--r--libvirt-override-virStream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-override-virStream.py b/libvirt-override-virStream.py
index 2d716eb..d9bf260 100644
--- a/libvirt-override-virStream.py
+++ b/libvirt-override-virStream.py
@@ -253,7 +253,7 @@
"""
while True:
[inData, sectionLen] = holeHandler(self, opaque)
- if (inData == False and sectionLen > 0):
+ if not inData and sectionLen > 0:
if (self.sendHole(sectionLen) < 0 or
skipHandler(self, sectionLen, opaque) < 0):
self.abort()