Skip to content
Snippets Groups Projects
Commit aa201fd2 authored by Andreas Freise's avatar Andreas Freise
Browse files

adding a removeLine method to kat, to allow me to remove wrong

code lines that were not parsed into an object but have been
added as extra lines. This works for me, but we could do
something more sophisticated if needed.
parent 7bfb9432
No related branches found
No related tags found
No related merge requests found
......@@ -606,6 +606,15 @@ class kat(object):
return [x, y, hdr]
def removeLine(self, fragment) :
for key in self.__blocks:
objs = self.__blocks[key].contents
for obj in objs:
if isinstance(obj, str):
if fragment in obj:
print " ** removing line '{0}'".format(obj)
objs.remove(obj)
def generateKatScript(self) :
""" Generates the kat file which can then be run """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment