summaryrefslogtreecommitdiff
path: root/Lib/asyncio/base_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-04-01 21:43:54 +0200
committerVictor Stinner <victor.stinner@gmail.com>2016-04-01 21:43:54 +0200
commit00f4648a3980c72bb7a4e63803d5596d964fe1f6 (patch)
tree87eff04791596e5e78d6681aa6916df2ea47f02b /Lib/asyncio/base_events.py
parent89d3f53aacc78a196bc2f57643a19b15974aa630 (diff)
parentc94a93aecbca31939086bc65f09f683bd521a2f6 (diff)
downloadcpython-git-00f4648a3980c72bb7a4e63803d5596d964fe1f6.tar.gz
Merge 3.5 (asyncio)
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r--Lib/asyncio/base_events.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index 3a42b10cb1..99d503fe1f 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -54,6 +54,12 @@ _MIN_SCHEDULED_TIMER_HANDLES = 100
# before cleanup of cancelled handles is performed.
_MIN_CANCELLED_TIMER_HANDLES_FRACTION = 0.5
+# Exceptions which must not call the exception handler in fatal error
+# methods (_fatal_error())
+_FATAL_ERROR_IGNORE = (BrokenPipeError,
+ ConnectionResetError, ConnectionAbortedError)
+
+
def _format_handle(handle):
cb = handle._callback
if inspect.ismethod(cb) and isinstance(cb.__self__, tasks.Task):