Commit 7b53a4e0 authored by Daniel Brown's avatar Daniel Brown
Browse files

Fixing removal loop, removing duplicate parse command

parent 47676da4
Pipeline #1751 failed with stage
in 13 seconds
......@@ -940,8 +940,7 @@ class kat(object):
self.parseCommands(commands, blocks=blocks)
def parseKatCode(self, code, blocks=None):
#commands = code.split("\n")
self.parseCommands(code, blocks=blocks)
raise pkex.BasePyKatException("Removed. Use parseCommands instead.")
def processConstants(self, commands):
"""
......@@ -1014,7 +1013,7 @@ class kat(object):
else:
return
for o in self.__blocks[name].contents:
for o in list(self.__blocks[name].contents):
self.remove(o)
del self.__blocks[name]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment