Skip to content

Commit

Permalink
[Converter.py] fix NameError in last commit (#3936)
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Mar 31, 2024
1 parent a00de23 commit ba386fe
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/python/Components/Converter/Converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,5 @@ def __repr__(self):
def handleCommand(self, cmd):
self.source.handleCommand(cmd)

def appendToStringWithSeparator(self, str, part):
if str == "":
str = part
else:
text = f"{text}{self.separatorChar or ' '}{part}"
return text
def appendToStringWithSeparator(self, text, part):
return f"{text}{self.separator or ' '}{part}" if text else part

0 comments on commit ba386fe

Please sign in to comment.