fix locking issue in __deepcopy__

This commit is contained in:
Jan Petykiewicz 2019-12-13 01:25:38 -08:00
commit f2e6548d21
3 changed files with 6 additions and 3 deletions

View file

@ -102,8 +102,9 @@ class Label:
def __deepcopy__(self, memo: Dict = None) -> 'Label':
memo = {} if memo is None else memo
new = copy.copy(self)
new = copy.copy(self).unlock()
new._offset = self._offset.copy()
new.locked = self.locked
return new
def copy(self) -> 'Label':