NameError in _fatal_error · Issue #363 · python/asyncio (original) (raw)

In asyncio/sslproto.py, method _fatal_error, the use of base_events._FATAL_ERROR_IGNORE (currently at https://github.com/python/asyncio/blob/master/asyncio/sslproto.py#L658) causes a NameError.

Need to add this to the top:

from . import base_events

In my case, I'm seeing this error because of an underlying problem in my code (which I've now fixed -- I had erroneously left open a socket, and this happens when the socket is later cleaned up), but this error made it just a little harder to diagnose the cause.

See https://groups.google.com/forum/?fromgroups#!searchin/python-tulip/nameerror/python-tulip/RbZ_qWuqSZI/NfsqNvA_CwAJ and https://groups.google.com/forum/#!searchin/linux.debian.bugs.dist/827453/linux.debian.bugs.dist/6aLdMUvvSqw/YSKbGZzyEQAJ for examples of someone else getting the same symptom.