GRAYBYTE WORDPRESS FILE MANAGER7674

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python312/lib64/python3.12/asyncio/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python312/lib64/python3.12/asyncio//base_futures.py
__all__ = ()

import reprlib

from . import format_helpers

# States for Future.
_PENDING = 'PENDING'
_CANCELLED = 'CANCELLED'
_FINISHED = 'FINISHED'


def isfuture(obj):
    """Check for a Future.

    This returns True when obj is a Future instance or is advertising
    itself as duck-type compatible by setting _asyncio_future_blocking.
    See comment in Future for more details.
    """
    return (hasattr(obj.__class__, '_asyncio_future_blocking') and
            obj._asyncio_future_blocking is not None)


def _format_callbacks(cb):
    """helper function for Future.__repr__"""
    size = len(cb)
    if not size:
        cb = ''

    def format_cb(callback):
        return format_helpers._format_callback_source(callback, ())

    if size == 1:
        cb = format_cb(cb[0][0])
    elif size == 2:
        cb = '{}, {}'.format(format_cb(cb[0][0]), format_cb(cb[1][0]))
    elif size > 2:
        cb = '{}, <{} more>, {}'.format(format_cb(cb[0][0]),
                                        size - 2,
                                        format_cb(cb[-1][0]))
    return f'cb=[{cb}]'


def _future_repr_info(future):
    # (Future) -> str
    """helper function for Future.__repr__"""
    info = [future._state.lower()]
    if future._state == _FINISHED:
        if future._exception is not None:
            info.append(f'exception={future._exception!r}')
        else:
            # use reprlib to limit the length of the output, especially
            # for very long strings
            result = reprlib.repr(future._result)
            info.append(f'result={result}')
    if future._callbacks:
        info.append(_format_callbacks(future._callbacks))
    if future._source_traceback:
        frame = future._source_traceback[-1]
        info.append(f'created at {frame[0]}:{frame[1]}')
    return info


@reprlib.recursive_repr()
def _future_repr(future):
    info = ' '.join(_future_repr_info(future))
    return f'<{future.__class__.__name__} {info}>'

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 13 2025 08:36:47
root / linksafe
0755
__pycache__
--
May 13 2025 08:36:47
root / linksafe
0755
__init__.py
1.191 KB
April 25 2025 20:47:43
root / linksafe
0644
__main__.py
3.409 KB
April 25 2025 20:47:43
root / linksafe
0644
base_events.py
76.726 KB
April 25 2025 20:47:43
root / linksafe
0644
base_futures.py
1.928 KB
April 25 2025 20:47:43
root / linksafe
0644
base_subprocess.py
8.661 KB
April 25 2025 20:47:43
root / linksafe
0644
base_tasks.py
2.609 KB
April 25 2025 20:47:43
root / linksafe
0644
constants.py
1.38 KB
April 25 2025 20:47:43
root / linksafe
0644
coroutines.py
3.264 KB
April 25 2025 20:47:43
root / linksafe
0644
events.py
28.651 KB
April 25 2025 20:47:43
root / linksafe
0644
exceptions.py
1.711 KB
April 25 2025 20:47:43
root / linksafe
0644
format_helpers.py
2.348 KB
April 25 2025 20:47:43
root / linksafe
0644
futures.py
14.004 KB
April 25 2025 20:47:43
root / linksafe
0644
locks.py
18.55 KB
April 25 2025 20:47:43
root / linksafe
0644
log.py
0.121 KB
April 25 2025 20:47:43
root / linksafe
0644
mixins.py
0.47 KB
April 25 2025 20:47:43
root / linksafe
0644
proactor_events.py
32.715 KB
April 25 2025 20:47:43
root / linksafe
0644
protocols.py
6.794 KB
April 25 2025 20:47:43
root / linksafe
0644
queues.py
7.787 KB
April 25 2025 20:47:43
root / linksafe
0644
runners.py
7.061 KB
April 25 2025 20:47:43
root / linksafe
0644
selector_events.py
47.199 KB
April 25 2025 20:47:43
root / linksafe
0644
sslproto.py
31.151 KB
April 25 2025 20:47:43
root / linksafe
0644
staggered.py
6.911 KB
April 25 2025 20:47:43
root / linksafe
0644
streams.py
26.972 KB
April 25 2025 20:47:43
root / linksafe
0644
subprocess.py
7.556 KB
April 25 2025 20:47:43
root / linksafe
0644
taskgroups.py
9.335 KB
April 25 2025 20:47:43
root / linksafe
0644
tasks.py
36.486 KB
April 25 2025 20:47:43
root / linksafe
0644
threads.py
0.771 KB
April 25 2025 20:47:43
root / linksafe
0644
timeouts.py
5.196 KB
April 25 2025 20:47:43
root / linksafe
0644
transports.py
10.471 KB
April 25 2025 20:47:43
root / linksafe
0644
trsock.py
2.417 KB
April 25 2025 20:47:43
root / linksafe
0644
unix_events.py
51.879 KB
April 25 2025 20:47:43
root / linksafe
0644
windows_events.py
31.823 KB
April 25 2025 20:47:43
root / linksafe
0644
windows_utils.py
4.941 KB
April 25 2025 20:47:43
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF