Skip to content

Commit

Permalink
Fix api compiling.
Browse files Browse the repository at this point in the history
Signed-off-by: Aliwoto <[email protected]>
  • Loading branch information
KurimuzonAkuma authored and ALiwoto committed Jan 8, 2024
1 parent b99123a commit 56d4c07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/api/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,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,
Expand Down

0 comments on commit 56d4c07

Please sign in to comment.