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

adding string conversion for BlockedKat

parent 3f34a411
Branches
No related tags found
No related merge requests found
Pipeline #
...@@ -210,6 +210,16 @@ class BlockedKatFile(object): ...@@ -210,6 +210,16 @@ class BlockedKatFile(object):
bkf.write("mytest.kat") bkf.write("mytest.kat")
""" """
def __str__(self):
rtn = ""
for block in self.ordering:
rtn += "\n%%% FTblock " + block + "\n"
rtn += self.blocks[block]
rtn += "%%% FTend " + block + "\n"
return rtn
def __init__(self, NO_BLOCK="NO_BLOCK"): def __init__(self, NO_BLOCK="NO_BLOCK"):
self.__NO_BLOCK = NO_BLOCK self.__NO_BLOCK = NO_BLOCK
self.ordering = [self.__NO_BLOCK] self.ordering = [self.__NO_BLOCK]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment