Revert "release qubes.xml lock on object destroy"

This reverts commit 39e056b74acca3854c5707d8f2cbcd199b8cac75.
This change rely on reverted python-locking use.
This commit is contained in:
Marek Marczykowski-Górecki 2013-08-27 03:58:24 +02:00
parent 5fb1991ad5
commit a5a2c0b97c

View File

@ -291,10 +291,6 @@ class QubesVmCollection(dict):
def __repr__(self): def __repr__(self):
return '<{} {!r}>'.format(self.__class__.__name__, list(sorted(self.keys()))) return '<{} {!r}>'.format(self.__class__.__name__, list(sorted(self.keys())))
def __del__(self):
if self.qubes_store_file_lock.i_am_locking():
self.qubes_store_file_lock.release()
def values(self): def values(self):
for qid in self.keys(): for qid in self.keys():
yield self[qid] yield self[qid]