]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix bug introduced by previous backport.
authorBrett Cannon <bcannon@gmail.com>
Sun, 4 Jul 2004 18:35:56 +0000 (18:35 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 4 Jul 2004 18:35:56 +0000 (18:35 +0000)
Lib/threading.py

index c2c56c79dfbe45ef3b837baa25af301bcfc78ae9..df9748124fd643f77fd696d6b770a7d0d1622d44 100644 (file)
@@ -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