SILENT KILLERPanel

Current Path: > > usr > lib > python3.6 > site-packages > pip > _vendor > urllib3 > > util > >


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.8
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/lib/python3.6/site-packages/pip/_vendor/urllib3//util//

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 1044 bytes April 06 2024 13:40:45.
connection.py File 4237 bytes April 06 2024 13:40:45.
request.py File 3705 bytes April 06 2024 13:40:45.
response.py File 2343 bytes April 06 2024 13:40:45.
retry.py File 15104 bytes April 06 2024 13:40:45.
selectors.py File 21147 bytes April 06 2024 13:40:45.
ssl_.py File 12214 bytes April 06 2024 13:40:45.
timeout.py File 9757 bytes April 06 2024 13:40:45.
url.py File 6798 bytes April 06 2024 13:40:45.
wait.py File 1451 bytes April 06 2024 13:40:45.

Reading File: //usr/lib/python3.6/site-packages/pip/_vendor/urllib3//util///wait.py

from .selectors import (
    HAS_SELECT,
    DefaultSelector,
    EVENT_READ,
    EVENT_WRITE
)


def _wait_for_io_events(socks, events, timeout=None):
    """ Waits for IO events to be available from a list of sockets
    or optionally a single socket if passed in. Returns a list of
    sockets that can be interacted with immediately. """
    if not HAS_SELECT:
        raise ValueError('Platform does not have a selector')
    if not isinstance(socks, list):
        # Probably just a single socket.
        if hasattr(socks, "fileno"):
            socks = [socks]
        # Otherwise it might be a non-list iterable.
        else:
            socks = list(socks)
    with DefaultSelector() as selector:
        for sock in socks:
            selector.register(sock, events)
        return [key[0].fileobj for key in
                selector.select(timeout) if key[1] & events]


def wait_for_read(socks, timeout=None):
    """ Waits for reading to be available from a list of sockets
    or optionally a single socket if passed in. Returns a list of
    sockets that can be read from immediately. """
    return _wait_for_io_events(socks, EVENT_READ, timeout)


def wait_for_write(socks, timeout=None):
    """ Waits for writing to be available from a list of sockets
    or optionally a single socket if passed in. Returns a list of
    sockets that can be written to immediately. """
    return _wait_for_io_events(socks, EVENT_WRITE, timeout)

SILENT KILLER Tool