Traceback.py 240 B

12345678910111213
  1. #!/usr/bin/env python2
  2. import os
  3. m_traceback = ""
  4. def Write(s):
  5. global m_traceback
  6. m_traceback += "\t" + s
  7. if not s.endswith("\r") and not s.endswith("\n"):
  8. m_traceback += os.linesep
  9. def Read():
  10. return m_traceback