Change in vdsm[master]: lib: use weakmethod to break reference cycles
fromani at redhat.com
fromani at redhat.com
Thu Jan 14 15:34:13 UTC 2016
Francesco Romani has uploaded a new change for review.
Change subject: lib: use weakmethod to break reference cycles
......................................................................
lib: use weakmethod to break reference cycles
TODO: write proper commit message
Change-Id: I6906d4ea6a3fd591e3ca7faf45f519f578969d32
Bug-Url: https://bugzilla.redhat.com/??????
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M lib/vdsm/libvirtconnection.py
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/66/51866/1
diff --git a/lib/vdsm/libvirtconnection.py b/lib/vdsm/libvirtconnection.py
index 15ccf33..927c4fb 100644
--- a/lib/vdsm/libvirtconnection.py
+++ b/lib/vdsm/libvirtconnection.py
@@ -1,5 +1,5 @@
#
-# Copyright 2009-2013 Red Hat, Inc.
+# Copyright 2009-2016 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -125,7 +125,8 @@
for name in dir(ret):
method = getattr(ret, name)
if callable(method) and name[0] != '_':
- setattr(ret, name, wrapMethod(method))
+ setattr(ret, name,
+ wrapMethod(utils.weakmethod(method)))
return ret
except libvirt.libvirtError as e:
edom = e.get_error_domain()
--
To view, visit https://gerrit.ovirt.org/51866
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6906d4ea6a3fd591e3ca7faf45f519f578969d32
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>
More information about the vdsm-patches
mailing list