Skip to content

Commit

Permalink
try first of Tal options
Browse files Browse the repository at this point in the history
  • Loading branch information
benkiel committed Nov 5, 2024
1 parent ad93046 commit 3432d11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Lib/fontParts/base/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,7 @@ def copyData(self: BaseObjectType, source: BaseObjectType) -> None:
if isinstance(selfValue, BaseObject):
selfValue.copyData(sourceValue)
else:
if hasattr(sourceValue, "__deepcopy__"):
sourceValue = deepcopy(sourceValue)
setattr(self, attr, sourceValue)
setattr(self, attr, deepcopy(sourceValue))

# ----------
# Exceptions
Expand Down

0 comments on commit 3432d11

Please sign in to comment.