]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #26987: Correct implementation to match comment
authorZachary Ware <zachary.ware@gmail.com>
Mon, 9 May 2016 19:49:31 +0000 (14:49 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Mon, 9 May 2016 19:49:31 +0000 (14:49 -0500)
This was inadvertently changed in 644b677c2ae5 to use self._stderr
instead of _sys.stderr.

Lib/threading.py

index 828019d44161bd3b3cfd1a81a002c49d3e36b274..dd25f72c1207c32a54286dba3b10764c4d8241ad 100644 (file)
@@ -921,7 +921,7 @@ class Thread:
                 # self.
                 if _sys and _sys.stderr is not None:
                     print("Exception in thread %s:\n%s" %
-                          (self.name, _format_exc()), file=self._stderr)
+                          (self.name, _format_exc()), file=_sys.stderr)
                 elif self._stderr is not None:
                     # Do the best job possible w/o a huge amt. of code to
                     # approximate a traceback (code ideas from