$77 GRAYBYTE WORDPRESS FILE MANAGER $95

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/

HOME
Current File : /usr/lib/python2.7/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)


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 8.23 PM
root / root
0755
__init__.py
1.02 KB
21 Apr 2022 6.08 PM
root / root
0644
__init__.pyc
1.247 KB
21 Apr 2022 6.08 PM
root / root
0644
__init__.pyo
1.247 KB
21 Apr 2022 6.08 PM
root / root
0644
connection.py
4.138 KB
21 Apr 2022 6.08 PM
root / root
0644
connection.pyc
3.78 KB
21 Apr 2022 6.08 PM
root / root
0644
connection.pyo
3.78 KB
21 Apr 2022 6.08 PM
root / root
0644
request.py
3.618 KB
21 Apr 2022 6.08 PM
root / root
0644
request.pyc
3.669 KB
21 Apr 2022 6.08 PM
root / root
0644
request.pyo
3.669 KB
21 Apr 2022 6.08 PM
root / root
0644
response.py
2.288 KB
21 Apr 2022 6.08 PM
root / root
0644
response.pyc
2.243 KB
21 Apr 2022 6.08 PM
root / root
0644
response.pyo
2.243 KB
21 Apr 2022 6.08 PM
root / root
0644
retry.py
14.75 KB
21 Apr 2022 6.08 PM
root / root
0644
retry.pyc
14.383 KB
21 Apr 2022 6.08 PM
root / root
0644
retry.pyo
14.383 KB
21 Apr 2022 6.08 PM
root / root
0644
selectors.py
20.651 KB
21 Apr 2022 6.08 PM
root / root
0644
selectors.pyc
20.493 KB
21 Apr 2022 6.08 PM
root / root
0644
selectors.pyo
20.493 KB
21 Apr 2022 6.08 PM
root / root
0644
ssl_.py
11.928 KB
21 Apr 2022 6.08 PM
root / root
0644
ssl_.pyc
10.356 KB
21 Apr 2022 6.08 PM
root / root
0644
ssl_.pyo
10.356 KB
21 Apr 2022 6.08 PM
root / root
0644
timeout.py
9.528 KB
21 Apr 2022 6.08 PM
root / root
0644
timeout.pyc
9.488 KB
21 Apr 2022 6.08 PM
root / root
0644
timeout.pyo
9.488 KB
21 Apr 2022 6.08 PM
root / root
0644
url.py
6.639 KB
21 Apr 2022 6.08 PM
root / root
0644
url.pyc
6.614 KB
21 Apr 2022 6.08 PM
root / root
0644
url.pyo
6.614 KB
21 Apr 2022 6.08 PM
root / root
0644
wait.py
1.417 KB
21 Apr 2022 6.08 PM
root / root
0644
wait.pyc
1.799 KB
21 Apr 2022 6.08 PM
root / root
0644
wait.pyo
1.799 KB
21 Apr 2022 6.08 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF