From 109b5971ed82b291f8d7cef8c84b45c36ce64d31 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 21 Sep 2018 09:46:01 -0400 Subject: [PATCH] Don't overload `func` arg --- tractor/_portal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tractor/_portal.py b/tractor/_portal.py index 6eaab31..9dc0cba 100644 --- a/tractor/_portal.py +++ b/tractor/_portal.py @@ -217,11 +217,11 @@ class LocalPortal: ) -> None: self.actor = actor - async def run(self, ns: str, func: str, **kwargs) -> Any: + async def run(self, ns: str, func_name: str, **kwargs) -> Any: """Run a requested function locally and return it's result. """ obj = self.actor if ns == 'self' else importlib.import_module(ns) - func = getattr(obj, func) + func = getattr(obj, func_name) if inspect.iscoroutinefunction(func): return await func(**kwargs) else: