Michael Pasternak has uploaded a new change for review. Change subject: sdk: reorder super constructor invocation in ordereddict ......................................................................
sdk: reorder super constructor invocation in ordereddict this way lock objects will be available for any type of the dict initialization Change-Id: I0e63d81f2de810de334e4944f9004f9d14aa9877 Signed-off-by: Michael pasternak <[email protected]> --- M src/ovirtsdk/utils/ordereddict.py 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/48/15748/1 diff --git a/src/ovirtsdk/utils/ordereddict.py b/src/ovirtsdk/utils/ordereddict.py index 97536ad..187f72a 100644 --- a/src/ovirtsdk/utils/ordereddict.py +++ b/src/ovirtsdk/utils/ordereddict.py @@ -6,10 +6,11 @@ """A dictionary preserving insert order""" def __init__(self, dict=None): self._keys = [] - UserDict.__init__(self, dict) self.__plock = thread.allocate_lock() self.__rlock = thread.allocate_lock() + UserDict.__init__(self, dict) + def clear(self): """Clears the dictionary""" with self.__plock: -- To view, visit http://gerrit.ovirt.org/15748 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0e63d81f2de810de334e4944f9004f9d14aa9877 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-sdk Gerrit-Branch: master Gerrit-Owner: Michael Pasternak <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
