[libvirt] [PATCH libvirt-python v2 03/22] event-test.py: Remove dead assignment

Philipp Hahn hahn at univention.de
Fri Sep 21 13:34:58 UTC 2018


variable is unused

Signed-off-by: Philipp Hahn <hahn at univention.de>
---
 examples/event-test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/event-test.py b/examples/event-test.py
index a7c7054..1f34930 100755
--- a/examples/event-test.py
+++ b/examples/event-test.py
@@ -207,7 +207,7 @@ class virEventLoopPoll:
                 # the data just continue
                 if fd == self.pipetrick[0]:
                     self.pendingWakeup = False
-                    data = os.read(fd, 1)
+                    os.read(fd, 1)
                     continue
 
                 h = self.get_handle_by_fd(fd)
-- 
2.11.0




More information about the libvir-list mailing list