Current Path: > > lib > python2.7 > site-packages > pip > _vendor > urllib3 > > util
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.py | File | 1044 bytes | April 21 2022 18:08:21. | |
__init__.pyc | File | 1277 bytes | April 21 2022 18:08:35. | |
__init__.pyo | File | 1277 bytes | April 21 2022 18:08:35. | |
connection.py | File | 4237 bytes | April 21 2022 18:08:21. | |
connection.pyc | File | 3871 bytes | April 21 2022 18:08:35. | |
connection.pyo | File | 3871 bytes | April 21 2022 18:08:35. | |
request.py | File | 3705 bytes | April 21 2022 18:08:21. | |
request.pyc | File | 3757 bytes | April 21 2022 18:08:35. | |
request.pyo | File | 3757 bytes | April 21 2022 18:08:35. | |
response.py | File | 2343 bytes | April 21 2022 18:08:21. | |
response.pyc | File | 2297 bytes | April 21 2022 18:08:35. | |
response.pyo | File | 2297 bytes | April 21 2022 18:08:35. | |
retry.py | File | 15104 bytes | April 21 2022 18:08:21. | |
retry.pyc | File | 14728 bytes | April 21 2022 18:08:35. | |
retry.pyo | File | 14728 bytes | April 21 2022 18:08:35. | |
selectors.py | File | 21147 bytes | April 21 2022 18:08:21. | |
selectors.pyc | File | 20985 bytes | April 21 2022 18:08:35. | |
selectors.pyo | File | 20985 bytes | April 21 2022 18:08:35. | |
ssl_.py | File | 12214 bytes | April 21 2022 18:08:21. | |
ssl_.pyc | File | 10605 bytes | April 21 2022 18:08:35. | |
ssl_.pyo | File | 10605 bytes | April 21 2022 18:08:35. | |
timeout.py | File | 9757 bytes | April 21 2022 18:08:21. | |
timeout.pyc | File | 9716 bytes | April 21 2022 18:08:35. | |
timeout.pyo | File | 9716 bytes | April 21 2022 18:08:35. | |
url.py | File | 6798 bytes | April 21 2022 18:08:21. | |
url.pyc | File | 6773 bytes | April 21 2022 18:08:35. | |
url.pyo | File | 6773 bytes | April 21 2022 18:08:35. | |
wait.py | File | 1451 bytes | April 21 2022 18:08:21. | |
wait.pyc | File | 1842 bytes | April 21 2022 18:08:35. | |
wait.pyo | File | 1842 bytes | April 21 2022 18:08:35. |
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