%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
a
�_g\ � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ dgZG dd� de�Z G dd � d e
�ZG d
d� de
�ZG dd
� d
e
�Z
G dd� de�ZG dd� de�ZdS )z'
Exceptions.
.. versionadded:: 1.3b1
� )�absolute_import)�division)�print_function)�GreenletExit�LoopExitc @ s, e Zd ZdZedd� �Zdd� Zdd� ZdS ) r a�
Exception thrown when the hub finishes running (`gevent.hub.Hub.run`
would return).
In a normal application, this is never thrown or caught
explicitly. The internal implementation of functions like
:meth:`gevent.hub.Hub.join` and :func:`gevent.joinall` may catch it, but user code
generally should not.
.. caution::
Errors in application programming can also lead to this exception being
raised. Some examples include (but are not limited too):
- greenlets deadlocking on a lock;
- using a socket or other gevent object with native thread
affinity from a different thread
c C s t | j�dkr| jd S dS )z^
The (optional) hub that raised the error.
.. versionadded:: 20.12.0
� � N)�len�args��self� r
�>/vddos/python/lib/python3.9/site-packages/gevent/exceptions.py�hub( s zLoopExit.hubc C sF t | j�dkr<dd l}d| jd | jd |�| jd �f S t�| �S )Nr r z%s
Hub: %s
Handles:
%sr � )r r
�pprint�pformat� Exception�__repr__)r r r
r
r r 3 s �� zLoopExit.__repr__c C s t | �S �N)�reprr r
r
r �__str__B s zLoopExit.__str__N)�__name__�
__module__�__qualname__�__doc__�propertyr r r r
r
r
r r s
c @ s e Zd ZdZdS )�BlockingSwitchOutErrorz�
Raised when a gevent synchronous function is called from a
low-level event loop callback.
This is usually a programming error.
N�r r r r r
r
r
r r E s r c @ s e Zd ZdZdS )�InvalidSwitchErrorz�
Raised when the event loop returns control to a greenlet in an
unexpected way.
This is usually a bug in gevent, greenlet, or the event loop.
Nr r
r
r
r r N s r c @ s e Zd ZdZdS )�ConcurrentObjectUseErrora-
Raised when an object is used (waited on) by two greenlets
independently, meaning the object was entered into a blocking
state by one greenlet and then another while still blocking in the
first one.
This is usually a programming error.
.. seealso:: `gevent.socket.wait`
Nr r
r
r
r r V s r c @ s e Zd ZdZdS )�InvalidThreadUseErrora�
Raised when an object is used from a different thread than
the one it is bound to.
Some objects, such as gevent sockets, semaphores, and threadpools,
are tightly bound to their hub and its loop. The hub and loop
are not thread safe, with a few exceptions. Attempting to use
such objects from a different thread is an error, and may cause
problems ranging from incorrect results to memory corruption
and a crashed process.
In some cases, gevent catches this "accidentally", and the result is
a `LoopExit`. In some cases, gevent doesn't catch this at all.
In other cases (typically when the consequences are suspected to
be more on the more severe end of the scale, and when the operation in
question is already relatively heavyweight), gevent explicitly checks
for this usage and will raise this exception when it is detected.
.. versionadded:: 1.5a3
Nr r
r
r
r r! b s r! c @ s e Zd ZdZdd� ZdS )�HubDestroyeda
Internal exception, raised when we're trying to destroy the
hub and we want the loop to stop running callbacks now.
This must not be subclassed; the type is tested by identity.
Clients outside of gevent must not raise this exception.
.. versionadded:: 20.12.0
c C s t �| |� || _d S r )r �__init__�destroy_loop)r r$ r
r
r r# � s zHubDestroyed.__init__N)r r r r r# r
r
r
r r"