language/core: forward kernel return value

This commit is contained in:
Sebastien Bourdeauducq 2022-04-28 15:37:30 +08:00
parent 49cb570290
commit 8e594d6666
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def kernel(function_or_method):
@wraps(function_or_method) @wraps(function_or_method)
def run_on_core(self, *args, **kwargs): def run_on_core(self, *args, **kwargs):
fake_method = SimpleNamespace(__self__=self, __name__=function_or_method.__name__) fake_method = SimpleNamespace(__self__=self, __name__=function_or_method.__name__)
self.core.run(fake_method, args, kwargs) return self.core.run(fake_method, args, kwargs)
else: else:
@wraps(function_or_method) @wraps(function_or_method)
def run_on_core(*args, **kwargs): def run_on_core(*args, **kwargs):