1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-11-30 04:23:46 +03:00

stream: Return None from callback

nobody evaluates the return value.

Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
Philipp Hahn
2018-11-20 10:11:25 +01:00
committed by Daniel Berrange
parent 547965ecd9
commit fd7087fb72

View File

@@ -47,7 +47,6 @@
try: try:
for cb, opaque in self.domainEventCallbacks.items(): for cb, opaque in self.domainEventCallbacks.items():
cb(self, virDomain(self, _obj=dom), event, detail, opaque) cb(self, virDomain(self, _obj=dom), event, detail, opaque)
return 0
except AttributeError: except AttributeError:
pass pass
@@ -124,7 +123,6 @@
opaque = cbData["opaque"] opaque = cbData["opaque"]
cb(self, virDomain(self, _obj=dom), disk, type, status, opaque) cb(self, virDomain(self, _obj=dom), disk, type, status, opaque)
return 0
except AttributeError: except AttributeError:
pass pass