From 109b257fe528a1e0c132a649abfda75ef54727b5 Mon Sep 17 00:00:00 2001 From: Philipp Hahn Date: Wed, 21 Nov 2018 09:08:32 +0100 Subject: [PATCH] stream: Simplify boolean condition Signed-off-by: Philipp Hahn --- 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 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()