summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-05-09 19:50:36 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-05-09 19:50:36 (GMT)
commite7041fa2158c1c70e5fecb6c56fc9cef0c275fc6 (patch)
tree6c3232b4f0db2d0054a2e82ca058449b385f6324
parent6a8af9ab36aaa18308f5f742a81035d7d9e41b5e (diff)
parent78b5ed98d811f3d158ce27c784269140defe6ec7 (diff)
downloadcpython-e7041fa2158c1c70e5fecb6c56fc9cef0c275fc6.zip
cpython-e7041fa2158c1c70e5fecb6c56fc9cef0c275fc6.tar.gz
cpython-e7041fa2158c1c70e5fecb6c56fc9cef0c275fc6.tar.bz2
Closes #26987: Merge with 3.5
-rw-r--r--Lib/threading.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 2bf33c1..cab1e70 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -923,7 +923,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