
    h                     V   S r SSKJr  SSKJrJrJrJr  SSKJ	r	  \" \	5       " S S5      5       r
\" \5       " S S\
5      5       r\" \5       " S	 S
\
5      5       r " S S5      r\" \5       " S S\5      5       r\" \5       " S S\5      5       r\" S5      r\" S5      r\" S5      rg)zM
Fake client and server endpoint string parser plugins for testing purposes.
    )implementer)IStreamClientEndpoint,IStreamClientEndpointStringParserWithReactorIStreamServerEndpoint!IStreamServerEndpointStringParser)IPluginc                       \ rS rSrS rSrg)
PluginBase   c                     Xl         g Nprefix)selfpfxs     i/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/twisted/internet/test/fakeendpoint.py__init__PluginBase.__init__   s        r   N__name__
__module____qualname____firstlineno__r   __static_attributes__ r   r   r
   r
      s    r   r
   c                       \ rS rSrS rSrg)FakeClientParserWithReactor   c                     [        XU5      $ r   )StreamClientr   akws      r   parseStreamClient-FakeClientParserWithReactor.parseStreamClient       DR((r   r   N)r   r   r   r   r%   r   r   r   r   r   r          )r   r   c                       \ rS rSrS rSrg)
FakeParser!   c                     [        XU5      $ r   )StreamServerr"   s      r   parseStreamServerFakeParser.parseStreamServer#   r'   r   r   N)r   r   r   r   r.   r   r   r   r   r*   r*   !   r(   r   r*   c                       \ rS rSrS rSrg)EndpointBase'   c                 (    Xl         X l        X0l        g r   )parserargskwargs)r   r4   r5   r6   s       r   r   EndpointBase.__init__(   s    	r   )r5   r6   r4   Nr   r   r   r   r1   r1   '   s    r   r1   c                       \ rS rSrSS jrSrg)r!   .   Nc                     g r   r   r   protocolFactorys     r   connectStreamClient.connect0       r   r   r   )r   r   r   r   r=   r   r   r   r   r!   r!   .       r   r!   c                       \ rS rSrSS jrSrg)r-   5   Nc                     g r   r   r;   s     r   listenStreamServer.listen7   r?   r   r   r   )r   r   r   r   rD   r   r   r   r   r-   r-   5   r@   r   r-   fakecrfakecpfakeN)__doc__zope.interface.declarationsr   twisted.internet.interfacesr   r   r   r   twisted.pluginr   r
   r   r*   r1   r!   r-   rF   fakeClientWithReactor"fakeClientWithReactorAndPreferencer   r   r   <module>rO      s   

 4  # W  
 9:)* ) ;)
 ./) ) 0)
  "#<  $ "#<  $ &3H= %@%J "r   