Commit 78b5ed98 authored by Zachary Ware's avatar Zachary Ware

Issue #26987: Correct implementation to match comment

This was inadvertently changed in 644b677c2ae5 to use self._stderr
instead of _sys.stderr.
parent df40b623
...@@ -921,7 +921,7 @@ class Thread: ...@@ -921,7 +921,7 @@ class Thread:
# self. # self.
if _sys and _sys.stderr is not None: if _sys and _sys.stderr is not None:
print("Exception in thread %s:\n%s" % 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: elif self._stderr is not None:
# Do the best job possible w/o a huge amt. of code to # Do the best job possible w/o a huge amt. of code to
# approximate a traceback (code ideas from # approximate a traceback (code ideas from
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment