1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-05 18:30:50 +01:00

utils/asyn: Fix memoized_method.__set_name__

Set the "_name" attribute rather than trying to set the "name" read-only
property.
This commit is contained in:
Douglas Raillard 2024-08-01 15:26:18 +01:00 committed by Marc Bonnici
parent 54a5732c61
commit 796b9fc1ef

View File

@ -289,7 +289,7 @@ class memoized_method:
raise RuntimeError("Cannot monkey-patch a memoized function")
def __set_name__(self, owner, name):
self.name = name
self._name = name
def asyncf(f):