Kaydet (Commit) f9b01fe6 authored tarafından Vinay Sajip's avatar Vinay Sajip

Issue #5971: StreamHandler.handleError now swallows IOErrors which occur when…

Issue #5971: StreamHandler.handleError now swallows IOErrors which occur when trying to print a traceback.
üst 812d7715
...@@ -720,8 +720,12 @@ class Handler(Filterer): ...@@ -720,8 +720,12 @@ class Handler(Filterer):
""" """
if raiseExceptions: if raiseExceptions:
ei = sys.exc_info() ei = sys.exc_info()
traceback.print_exception(ei[0], ei[1], ei[2], None, sys.stderr) try:
del ei traceback.print_exception(ei[0], ei[1], ei[2], None, sys.stderr)
except IOError:
pass # see issue 5971
finally:
del ei
class StreamHandler(Handler): class StreamHandler(Handler):
""" """
......
...@@ -28,7 +28,7 @@ Core and Builtins ...@@ -28,7 +28,7 @@ Core and Builtins
- Issue #4426: The UTF-7 decoder was too strict and didn't accept some legal - Issue #4426: The UTF-7 decoder was too strict and didn't accept some legal
sequences. Patch by Nick Barnes and Victor Stinner. sequences. Patch by Nick Barnes and Victor Stinner.
- Issue #1588: Add complex.__format__. For example, - Issue #1588: Add complex.__format__. For example,
format(complex(1, 2./3), '.5') now produces a sensible result. format(complex(1, 2./3), '.5') now produces a sensible result.
- Issue #5864: Fix empty format code formatting for floats so that it - Issue #5864: Fix empty format code formatting for floats so that it
...@@ -285,9 +285,12 @@ Core and Builtins ...@@ -285,9 +285,12 @@ Core and Builtins
Library Library
------- -------
- Issue #5971: StreamHandler.handleError now swallows IOErrors which occur when
trying to print a traceback.
- Issue #5976: Fixed Distutils test_check_environ. - Issue #5976: Fixed Distutils test_check_environ.
- Issue #5900: Ensure RUNPATH is added to extension modules with RPATH if GNU - Issue #5900: Ensure RUNPATH is added to extension modules with RPATH if GNU
ld is used. Original patch by Floris Bruynooghe. ld is used. Original patch by Floris Bruynooghe.
- Issue #5941: Distutils build_clib command was not working anymore because - Issue #5941: Distutils build_clib command was not working anymore because
...@@ -323,7 +326,7 @@ Library ...@@ -323,7 +326,7 @@ Library
- Issue #2245: aifc now skips chunk types it doesn't recognize, per spec. - Issue #2245: aifc now skips chunk types it doesn't recognize, per spec.
- Issue #5874: distutils.tests.test_config_cmd is not locale-sensitive - Issue #5874: distutils.tests.test_config_cmd is not locale-sensitive
anymore. anymore.
- Issue #4305: ctypes should now build again on mipsel-linux-gnu - Issue #4305: ctypes should now build again on mipsel-linux-gnu
...@@ -899,7 +902,7 @@ Build ...@@ -899,7 +902,7 @@ Build
linker, rather than always exit successfully. Patch by Floris Bruynooghe. linker, rather than always exit successfully. Patch by Floris Bruynooghe.
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify - Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
the order that backends for the dbm extension are checked. the order that backends for the dbm extension are checked.
- Link the shared python library with $(MODLIBS). - Link the shared python library with $(MODLIBS).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment