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
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
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()
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()