Commit 5a1bce8b authored by Daniel Brown's avatar Daniel Brown
Browse files

adding string conversion for BlockedKat

parent 3f34a411
Pipeline #1766 passed with stage
in 18 seconds
......@@ -210,6 +210,16 @@ class BlockedKatFile(object):
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"):
self.__NO_BLOCK = NO_BLOCK
self.ordering = [self.__NO_BLOCK]
......
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