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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/t/r/trollius-0.2/asyncio/windows_events.py   trollius(Download)
from .coroutines import From, Return
from .log import logger
from .py33_exceptions import wrap_error, get_error_class, ConnectionRefusedError
 
 
            elif err != 0:
                msg = _overlapped.FormatMessage(err)
                err_cls = get_error_class(err, None)
                if err_cls is not None:
                    raise err_cls(0, msg, None, err)

src/t/r/trollius-0.2/asyncio/time_monotonic.py   trollius(Download)
import sys
from .log import logger
from .py33_exceptions import get_error_class
 
__all__ = ('time_monotonic',)
        def ctypes_oserror():
            errno = ctypes.get_errno()
            message = os.strerror(errno)
            error_class = get_error_class(errno, OSError)
            return error_class(errno, message)