#!/usr/bin/env python2 import os m_traceback = "" def Write(s): global m_traceback m_traceback += "\t" + s if not s.endswith("\r") and not s.endswith("\n"): m_traceback += os.linesep def Read(): return m_traceback