Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

            def wrap_ssl_error(func, *args, **kw):
        try:
            return func(*args, **kw)
        except ssl.SSLError as err:
            if err.args:
                _wrap_error(_MAP_ERRORS, err.args[0], err.args)
            raise
        


src/t/r/trollius-0.2/asyncio/selector_events.py   trollius(Download)
try:
    import ssl
    from .py3_ssl import (
        wrap_ssl_error, SSLContext, BACKPORT_SSL_CONTEXT, SSLWantReadError,
        SSLWantWriteError)
    def _on_handshake(self):
        try:
            wrap_ssl_error(self._sock.do_handshake)
        except SSLWantReadError:
            self._loop.add_reader(self._sock_fd, self._on_handshake)
    def _sock_recv(self):
        return wrap_ssl_error(self._sock.recv, self.max_size)
 
    def _read_ready(self):
        if self._write_wants_read: