Skip to content
Snippets Groups Projects
Commit b80fc626 authored by Daniel Brown's avatar Daniel Brown
Browse files

adding __str__ for kat object which just prints kat script

parent 2d08a536
Branches
Tags
No related merge requests found
...@@ -932,6 +932,9 @@ class kat(object): ...@@ -932,6 +932,9 @@ class kat(object):
del self.__blocks[name] del self.__blocks[name]
def __str__(self):
return "".join(self.generateKatScript())
def parseCommands(self, commands, blocks=None, addToBlock=None): def parseCommands(self, commands, blocks=None, addToBlock=None):
try: try:
if addToBlock is not None and blocks is not None: if addToBlock is not None and blocks is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment