mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-30 17:50:46 +00: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:
parent
54a5732c61
commit
796b9fc1ef
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user