Changed show to return a string rather than print
diff --git a/src/python/oftest/action_list.py b/src/python/oftest/action_list.py
index d1ac2b0..99786f9 100644
--- a/src/python/oftest/action_list.py
+++ b/src/python/oftest/action_list.py
@@ -179,10 +179,11 @@
def __ne__(self, other): return not self.__eq__(other)
def show(self, prefix=''):
- print prefix + "Action List with " + str(len(self.actions)) + \
- " actions"
+ outstr = prefix + "Action List with " + str(len(self.actions)) + \
+ " actions\n"
count = 0
for obj in self.actions:
count += 1
- print prefix + " Action " + str(count) + ": "
- obj.show(prefix + ' ')
+ outstr += prefix + " Action " + str(count) + ": \n"
+ outstr += obj.show(prefix + ' ')
+ return outstr