BuildScript/scripts/TouchinBuild/Core/LineConveyor/CommentRemover.py

10 lines
181 B
Python

class CommentRemover:
def processText(self, line):
assert line is not None
newLine = line
index = line.find('#')
if index >= 0:
newLine = line[:index]
return newLine