
    &thc                        d Z ddlmZ ddlmZ ddlmZ  G d de          Zg dZ	 ddlm	Z
  G d	 d
e
          Z	e                    d
           n# e$ r Y nw xY w	 ddlmZ  G d de          Ze                    d           n# e$ r Y nw xY w	 ddlmZ  G d de          Ze                    d           n# e$ r Y nw xY w	 ddlmZ  G d de          Ze                    d           dS # eef$ r Y dS w xY w)aN  
pyee supplies a `EventEmitter` class that is similar to the
`EventEmitter` class from Node.js. In addition, it supplies the subclasses
`AsyncIOEventEmitter`, `TwistedEventEmitter` and `ExecutorEventEmitter`
for supporting async and threaded execution with asyncio, twisted, and
concurrent.futures Executors respectively, as supported by the environment.

# Example

```text
In [1]: from pyee.base import EventEmitter

In [2]: ee = EventEmitter()

In [3]: @ee.on('event')
   ...: def event_handler():
   ...:     print('BANG BANG')
   ...:

In [4]: ee.emit('event')
BANG BANG

In [5]:
```

    )warn)EventEmitter)PyeeExceptionc                   "     e Zd ZdZ fdZ xZS )BaseEventEmitterzG
    BaseEventEmitter is deprecated and an alias for EventEmitter.
    c                     t          t          d                     t          t          |                                            d S )Nz|pyee.BaseEventEmitter is deprecated and will be removed in a future major version; you should instead use pyee.EventEmitter.)r   DeprecationWarningsuperr   __init__self	__class__s    a/var/www/html/mycamper/aliexpress-site/backend/venv/lib/python3.11/site-packages/pyee/__init__.pyr   zBaseEventEmitter.__init__)   sM    R 	
 	
 	
 	%%..00000    __name__
__module____qualname____doc__r   __classcell__r   s   @r   r   r   $   sB         1 1 1 1 1 1 1 1 1r   r   )r   r   r   )AsyncIOEventEmitterc                   $     e Zd ZdZd fd	Z xZS )r   zP
        AsyncIOEventEmitter has been moved to the pyee.asyncio module.
        Nc                     t          t          d                     t          t          |                               |           d S )NzCpyee.AsyncIOEventEmitter has been moved to the pyee.asyncio module.)loop)r   r	   r
   r   r   )r   r   r   s     r   r   zAsyncIOEventEmitter.__init__>   sQ    "    %t,,5545@@@@@r   Nr   r   s   @r   r   r   9   sQ        	 		A 	A 	A 	A 	A 	A 	A 	A 	A 	Ar   r   )TwistedEventEmitterc                   "     e Zd ZdZ fdZ xZS )r   zP
        TwistedEventEmitter has been moved to the pyee.twisted module.
        c                     t          t          d                     t          t          |                                            d S )NzCpyee.TwistedEventEmitter has been moved to the pyee.twisted module.)r   r	   r
   r   r   r   s    r   r   zTwistedEventEmitter.__init__S   sL    "    %t,,5577777r   r   r   s   @r   r   r   N   sB        	 		8 	8 	8 	8 	8 	8 	8 	8 	8r   r   )ExecutorEventEmitterc                   $     e Zd ZdZd fd	Z xZS )r    zR
        ExecutorEventEmitter has been moved to the pyee.executor module.
        Nc                     t          t          d                     t          t          |                               |           d S )NzEpyee.ExecutorEventEmitter has been moved to the pyee.executor module.)executor)r   r	   r
   r    r   )r   r#   r   s     r   r   zExecutorEventEmitter.__init__h   sQ    "    &--666IIIIIr   r   r   r   s   @r   r    r    c   sQ        	 		J 	J 	J 	J 	J 	J 	J 	J 	J 	Jr   r    )TrioEventEmitterc                   $     e Zd ZdZd fd	Z xZS )r$   zJ
        TrioEventEmitter has been moved to the pyee.trio module.
        Nc                     t          t          d                     t          t          |                               ||           d S )Nz=pyee.TrioEventEmitter has been moved to the pyee.trio module.)nurserymanager)r   r	   r
   r$   r   )r   r'   r(   r   s      r   r   zTrioEventEmitter.__init__}   sQ    "S    "D))227G2TTTTTr   )NNr   r   s   @r   r$   r$   x   sQ        	 		U 	U 	U 	U 	U 	U 	U 	U 	U 	Ur   r$   N)r   warningsr   	pyee.baser   r   r   __all__pyee.asyncior   _AsyncIOEventEmitterappendImportErrorpyee.twistedr   _TwistedEventEmitterpyee.executorr    _ExecutorEventEmitter	pyee.trior$   _TrioEventEmitterSyntaxError r   r   <module>r8      s   6       2 2 2 2 2 2 # # # # # #1 1 1 1 1| 1 1 1  @
?
?	HHHHHHA A A A A2 A A A NN()))) 	 	 	D		HHHHHH8 8 8 8 82 8 8 8 NN()))) 	 	 	D		KKKKKKJ J J J J4 J J J NN)**** 	 	 	D		??????U U U U U, U U U NN%&&&&&[! 	 	 	DD	sG   )A AA)B BB)B> >CC
)C5 5D ?D 