mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Pyrofork: Fix api compiling
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
9da7f5137e
commit
97d5354ad2
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue