Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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()
Exemplo n.º 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()