Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python-internal/lib64/python3.11/asyncio/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python-internal/lib64/python3.11/asyncio/exceptions.py
"""asyncio exceptions."""


__all__ = ('BrokenBarrierError',
           'CancelledError', 'InvalidStateError', 'TimeoutError',
           'IncompleteReadError', 'LimitOverrunError',
           'SendfileNotAvailableError')


class CancelledError(BaseException):
    """The Future or Task was cancelled."""


TimeoutError = TimeoutError  # make local alias for the standard exception


class InvalidStateError(Exception):
    """The operation is not allowed in this state."""


class SendfileNotAvailableError(RuntimeError):
    """Sendfile syscall is not available.

    Raised if OS does not support sendfile syscall for given socket or
    file type.
    """


class IncompleteReadError(EOFError):
    """
    Incomplete read error. Attributes:

    - partial: read bytes string before the end of stream was reached
    - expected: total number of expected bytes (or None if unknown)
    """
    def __init__(self, partial, expected):
        r_expected = 'undefined' if expected is None else repr(expected)
        super().__init__(f'{len(partial)} bytes read on a total of '
                         f'{r_expected} expected bytes')
        self.partial = partial
        self.expected = expected

    def __reduce__(self):
        return type(self), (self.partial, self.expected)


class LimitOverrunError(Exception):
    """Reached the buffer limit while looking for a separator.

    Attributes:
    - consumed: total number of to be consumed bytes.
    """
    def __init__(self, message, consumed):
        super().__init__(message)
        self.consumed = consumed

    def __reduce__(self):
        return type(self), (self.args[0], self.consumed)


class BrokenBarrierError(RuntimeError):
    """Barrier is broken by barrier.abort() call."""
Name
Size
Permissions
Options
__pycache__
--
drwxr-xr-x
__init__.py
1.16 KB
-rw-r--r--
__main__.py
3.3 KB
-rw-r--r--
base_events.py
73.617 KB
-rw-r--r--
base_futures.py
1.957 KB
-rw-r--r--
base_subprocess.py
8.661 KB
-rw-r--r--
base_tasks.py
2.582 KB
-rw-r--r--
constants.py
1.295 KB
-rw-r--r--
coroutines.py
3.32 KB
-rw-r--r--
events.py
27.97 KB
-rw-r--r--
exceptions.py
1.711 KB
-rw-r--r--
format_helpers.py
2.348 KB
-rw-r--r--
futures.py
13.879 KB
-rw-r--r--
locks.py
18.568 KB
-rw-r--r--
log.py
0.121 KB
-rw-r--r--
mixins.py
0.47 KB
-rw-r--r--
proactor_events.py
32.484 KB
-rw-r--r--
protocols.py
6.794 KB
-rw-r--r--
queues.py
7.787 KB
-rw-r--r--
runners.py
6.682 KB
-rw-r--r--
selector_events.py
44.336 KB
-rw-r--r--
sslproto.py
30.995 KB
-rw-r--r--
staggered.py
5.852 KB
-rw-r--r--
streams.py
26.858 KB
-rw-r--r--
subprocess.py
7.502 KB
-rw-r--r--
taskgroups.py
8.272 KB
-rw-r--r--
tasks.py
33.626 KB
-rw-r--r--
threads.py
0.771 KB
-rw-r--r--
timeouts.py
5.196 KB
-rw-r--r--
transports.py
10.471 KB
-rw-r--r--
trsock.py
2.417 KB
-rw-r--r--
unix_events.py
50.698 KB
-rw-r--r--
windows_events.py
33.878 KB
-rw-r--r--
windows_utils.py
4.941 KB
-rw-r--r--