Skip to content

Incompatible with Python 2 #57

@TimeLooper

Description

@TimeLooper
    def handle_error(self):
        t, v = sys.exc_info()[:2]
        if t is SystemExit:
            raise t(v)
        elif t in (OSError, ConnectionAbortedError):
            # close after peer disconnection
            self.close()
        else:
            asynchat.async_chat.handle_error(self)

Why is there special handling for OSError and ConnectionAbortedError here? This code is incompatible with Python 2. Can I remove it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions