Skip to content
Snippets Groups Projects
Commit 861eb1ce authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

v2.1.8: bugfix release

parent 181ecbab
Branches develop
Tags v2.3
No related merge requests found
# v2.1.8
* _TBA_
* bugfix release: removed prints from LockedDataset
# v2.1.7
......
# coding=UTF-8
__version__ = '2.1.8a1'
__version__ = '2.1.8'
......@@ -79,14 +79,12 @@ class LockedDataset:
if not get_internal(self).lock.acquire(*args):
raise ResourceLocked('Could not acquire the lock on the object')
print('Lock acquired')
get_internal(self).locked = True
return self
def __exit__(self, exc_type, exc_val, exc_tb):
get_internal(self).lock.release()
get_internal(self).locked = False
print('Lock released')
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment