From: Zachary Ware Date: Mon, 9 May 2016 19:49:31 +0000 (-0500) Subject: Issue #26987: Correct implementation to match comment X-Git-Tag: v3.6.0a1~50^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78b5ed98d811f3d158ce27c784269140defe6ec7;p=thirdparty%2FPython%2Fcpython.git Issue #26987: Correct implementation to match comment This was inadvertently changed in 644b677c2ae5 to use self._stderr instead of _sys.stderr. --- diff --git a/Lib/threading.py b/Lib/threading.py index 828019d44161..dd25f72c1207 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -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