def on_thread_complete(self, thread): """ :type thread: scripts.core.pypy.PyPy """ super(ComparisonMultiThread, self).on_thread_complete(thread) # append ndiff to file content = list() content.append('-' * 60 + '\n') content.append(thread.name + '\n') content.append('-' * 60 + '\n') content.append(thread.executor.output.read()) content.append('\n' * 3) IO.append(self.output, '\n'.join(content) or '')