Skip to content

Commit

Permalink
fix: removing extra comas at the end of the command
Browse files Browse the repository at this point in the history
  • Loading branch information
clatapie committed Dec 11, 2024
1 parent c55ef28 commit 09d0ebe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pyconverter/xml2py/ast_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2979,6 +2979,8 @@ def py_source(self, custom_functions=None, indent=""):
command += arg.py_arg_name
command += "}"
command += '"\n'
while command != command.replace(',"', '"'): # remove extra commas at the end of the command
command = command.replace(',"', '"')
# ",{" + "},{".join(self.arg_desc.py_arg_name) + '}"\n'
else:
command = 'command = f"' + self.name + '"\n'
Expand Down

0 comments on commit 09d0ebe

Please sign in to comment.