mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +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")
|
raise RuntimeError("Cannot monkey-patch a memoized function")
|
||||||
|
|
||||||
def __set_name__(self, owner, name):
|
def __set_name__(self, owner, name):
|
||||||
self.name = name
|
self._name = name
|
||||||
|
|
||||||
|
|
||||||
def asyncf(f):
|
def asyncf(f):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user