Example #1
0
 def getvalue(self):
     result = StringIO.getvalue(self)
     if result and not result.endswith("\n"):
         result += "\n"
     if hasattr(self, "softspace"):
         del self.softspace
     return result
Example #2
0
 def getvalue(self):
     result = StringIO.getvalue(self)
     if result and not result.endswith("\n"):
         result += "\n"
     if hasattr(self, "softspace"):
         del self.softspace
     return result
Example #3
0
def _exception_traceback(exc_info):
    excout = StringIO()
    exc_type, exc_val, exc_tb = exc_info
    traceback.print_exception(exc_type, exc_val, exc_tb, file=excout)
    return excout.getvalue()
Example #4
0
def _exception_traceback(exc_info):
    excout = StringIO()
    exc_type, exc_val, exc_tb = exc_info
    traceback.print_exception(exc_type, exc_val, exc_tb, file=excout)
    return excout.getvalue()