summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavin Potts <python@discontinuity.net>2016-09-08 18:07:13 (GMT)
committerDavin Potts <python@discontinuity.net>2016-09-08 18:07:13 (GMT)
commit280290adb8dc3d2337f5b2bc25b824d93a9434e8 (patch)
treee1adff95ac6a8d07d9cb8e8edf2a93136525151c
parent794b2912acc1995afc6fe9501cc0ca8e56565325 (diff)
downloadcpython-280290adb8dc3d2337f5b2bc25b824d93a9434e8.zip
cpython-280290adb8dc3d2337f5b2bc25b824d93a9434e8.tar.gz
cpython-280290adb8dc3d2337f5b2bc25b824d93a9434e8.tar.bz2
Issue #21201: Improves readability of multiprocessing error message from server to client for certain exceptions
-rw-r--r--Lib/multiprocessing/managers.py2
-rw-r--r--Misc/NEWS3
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py
index 7763965..f2cee0c 100644
--- a/Lib/multiprocessing/managers.py
+++ b/Lib/multiprocessing/managers.py
@@ -287,7 +287,7 @@ class Server(object):
try:
send(msg)
except Exception, e:
- send(('#UNSERIALIZABLE', repr(msg)))
+ send(('#UNSERIALIZABLE', format_exc()))
except Exception, e:
util.info('exception in thread serving %r',
threading.current_thread().name)
diff --git a/Misc/NEWS b/Misc/NEWS
index dc4aa84..21cca5b6 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -125,6 +125,9 @@ Library
- Issue #25455: Fixed a crash in repr of cElementTree.Element with recursive tag.
+- Issue #21201: Improves readability of multiprocessing error message. Thanks
+ to Wojciech Walczak for patch.
+
IDLE
----