[Python-checkins] cpython (3.5): Issue #26987: Correct implementation to match comment
zach.ware
python-checkins at python.org
Mon May 9 15:50:49 EDT 2016
https://hg.python.org/cpython/rev/8842c02c02a2
changeset: 101282:8842c02c02a2
branch: 3.5
parent: 101279:afed12943ddd
user: Zachary Ware <zachary.ware at gmail.com>
date: Mon May 09 14:49:31 2016 -0500
summary:
Issue #26987: Correct implementation to match comment
This was inadvertently changed in 644b677c2ae5 to use self._stderr
instead of _sys.stderr.
files:
Lib/threading.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/threading.py b/Lib/threading.py
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -921,7 +921,7 @@
# 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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list