projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b80670c
)
syscalls: refactor dispatcher call arguments
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Mon, 18 Sep 2023 19:38:43 +0000
(22:38 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Mon, 18 Sep 2023 19:38:43 +0000
(22:38 +0300)
src/openpower/syscalls/__init__.py
patch
|
blob
|
history
diff --git
a/src/openpower/syscalls/__init__.py
b/src/openpower/syscalls/__init__.py
index 28a05cc71f189d23b705247595e23a0d72671cb9..abb06db172c92020c6cef4cfb0b6b3331334b953 100644
(file)
--- a/
src/openpower/syscalls/__init__.py
+++ b/
src/openpower/syscalls/__init__.py
@@
-55,9
+55,9
@@
class Dispatcher:
return super().__init__()
def __getattr__(self, identifier):
- return functools.partial(self.__call__, identifier
=identifier
)
+ return functools.partial(self.__call__, identifier)
- def __call__(self,
*arguments, identifier=None
):
+ def __call__(self,
identifier, *arguments
):
if isinstance(identifier, int):
identifier = str(identifier)
if identifier not in self.__guest: