From: Brett Cannon Date: Sun, 4 Jul 2004 18:35:56 +0000 (+0000) Subject: Fix bug introduced by previous backport. X-Git-Tag: v2.3.5c1~191 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a80b60b00a51893f22c6a076a41bba65e17667d6;p=thirdparty%2FPython%2Fcpython.git Fix bug introduced by previous backport. --- diff --git a/Lib/threading.py b/Lib/threading.py index c2c56c79dfbe..df9748124fd6 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -450,8 +450,9 @@ class Thread(_Verbose): # shutdown) use self.__stderr. Otherwise still use sys (as in # _sys) in case sys.stderr was redefined. if _sys: - _sys.stderr.write("Exception in thread %s:\n%s\n" % - (self.getName(), _format_exc())) + _sys.stderr.write("Exception in thread %s:" % + self.getName()) + _print_exc(file=_sys.stderr) else: # Do the best job possible w/o a huge amt. of code to # approx. a traceback stack trace