diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index 82e07dc9..07435778 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -259,11 +259,14 @@ def start(format: bool = False): args = ARGS_RE.findall(line) - # Fix arg name being "self" (reserved python keyword) + # Fix arg name being reserved python keyword for i, item in enumerate(args): if item[0] == "self": args[i] = ("is_self", item[1]) + if item[0] == "from": + args[i] = ("from_peer", item[1]) + combinator = Combinator( section=section, qualname=qualname,