
    h#                     :    S r SSKJrJrJrJr  SSKJr  \\4S jrg)z?Module implementing error-catching version of send (sendRobust)    )Any	AnonymousliveReceiversgetAllReceivers)robustApplyc                     / n[        [        X5      5       H(  n [        U/UQ7U US.UD6nUR                  XV45        M*     U$ ! [         a  nUR                  XW45         SnAMP  SnAff = f)a[  Send signal from sender to all connected receivers catching errors

signal -- (hashable) signal value, see connect for details

sender -- the sender of the signal

    if Any, only receivers registered for Any will receive
    the message.

    if Anonymous, only receivers registered to receive
    messages from Anonymous or Any will receive the message

    Otherwise can be any python object (normally one
    registered with a connect if you actually want
    something to occur).

arguments -- positional arguments which will be passed to
    *all* receivers. Note that this may raise TypeErrors
    if the receivers do not allow the particular arguments.
    Note also that arguments are applied before named
    arguments, so they should be used with care.

named -- named arguments which will be filtered according
    to the parameters of the receivers to only provide those
    acceptable to the receiver.

Return a list of tuple pairs [(receiver, response), ... ]

if any receiver raises an error (specifically any subclass of Exception),
the error instance is returned as the result for that receiver.
)signalsenderN)r   r   r   append	Exception)r	   r
   	argumentsnamed	responsesreceiverresponseerrs           X/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/pydispatch/robust.py
sendRobustr      s    L I!/&"AB	3" 	
 H h12 C 	  	.h_--	.s   A
A,A''A,N)	__doc__pydispatch.dispatcherr   r   r   r   pydispatch.robustapplyr   r        r   <module>r      s    E P P . 4r   