From a80b60b00a51893f22c6a076a41bba65e17667d6 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sun, 4 Jul 2004 18:35:56 +0000 Subject: [PATCH] Fix bug introduced by previous backport. --- Lib/threading.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.47.3