summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-05-09 19:49:31 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-05-09 19:49:31 (GMT)
commit78b5ed98d811f3d158ce27c784269140defe6ec7 (patch)
tree159caf5b35081641daa45d63382238d409de2620 /Lib/threading.py
parentdf40b623904c78847bbe24b9604a5b0522eafdb9 (diff)
downloadcpython-78b5ed98d811f3d158ce27c784269140defe6ec7.zip
cpython-78b5ed98d811f3d158ce27c784269140defe6ec7.tar.gz
cpython-78b5ed98d811f3d158ce27c784269140defe6ec7.tar.bz2
Issue #26987: Correct implementation to match comment
This was inadvertently changed in 644b677c2ae5 to use self._stderr instead of _sys.stderr.
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 828019d..dd25f72 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