1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-07-30 23:41:52 +03:00

stream: Simplify boolean condition

Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
Philipp Hahn
2018-11-21 09:08:32 +01:00
committed by Daniel Berrange
parent 06222739f7
commit 109b257fe5

View File

@ -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()