Skip to content

Commit

Permalink
Fix RPCGen for procs with only 1 method
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMilne committed Nov 12, 2023
1 parent fbe3468 commit 5219f22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
parser.out
parsetab.py
dist
build
build
*.egg-info
__pycache__
2 changes: 2 additions & 0 deletions shenaniganfs/tools/rpcgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ def _common_prefix(vals):
return prefix

def remove_common_prefix(self):
if len(self.children) == 1:
return
prefix = self._common_prefix([p.ident for p in self.children])
if not prefix:
return
Expand Down

0 comments on commit 5219f22

Please sign in to comment.