Ë
    oj  ã                   óV  — d Z ddlmZ ddlmZmZmZmZ ddlm	Z	  ee	«       G d„ d«      «       Z
 ee«       G d„ de
«      «       Z ee«       G d	„ d
e
«      «       Z G d„ d«      Z ee«       G d„ de«      «       Z ee«       G d„ de«      «       Z ed«      Z ed«      Z ed«      Zy)zM
Fake client and server endpoint string parser plugins for testing purposes.
é    )Úimplementer)ÚIStreamClientEndpointÚ,IStreamClientEndpointStringParserWithReactorÚIStreamServerEndpointÚ!IStreamServerEndpointStringParser)ÚIPluginc                   ó   — e Zd Zd„ Zy)Ú
PluginBasec                 ó   — || _         y ©N)Úprefix)ÚselfÚpfxs     úD/usr/lib/python3/dist-packages/twisted/internet/test/fakeendpoint.pyÚ__init__zPluginBase.__init__   s	   € Øˆ�ó    N©Ú__name__Ú
__module__Ú__qualname__r   © r   r   r
   r
      s   „ ór   r
   c                   ó   — e Zd Zd„ Zy)ÚFakeClientParserWithReactorc                 ó   — t        | ||«      S r   )ÚStreamClient©r   ÚaÚkws      r   ÚparseStreamClientz-FakeClientParserWithReactor.parseStreamClient   ó   € Ü˜D ! RÓ(Ð(r   N)r   r   r   r   r   r   r   r   r      ó   „ ó)r   r   c                   ó   — e Zd Zd„ Zy)Ú
FakeParserc                 ó   — t        | ||«      S r   )ÚStreamServerr   s      r   ÚparseStreamServerzFakeParser.parseStreamServer#   r    r   N)r   r   r   r&   r   r   r   r#   r#   !   r!   r   r#   c                   ó   — e Zd Zd„ Zy)ÚEndpointBasec                 ó.   — || _         || _        || _        y r   )ÚparserÚargsÚkwargs)r   r*   r+   r,   s       r   r   zEndpointBase.__init__(   s   € ØˆŒØˆŒ	Øˆ�r   Nr   r   r   r   r(   r(   '   s   „ ór   r(   c                   ó   — e Zd Zdd„Zy)r   Nc                  ó   — y r   r   ©r   ÚprotocolFactorys     r   ÚconnectzStreamClient.connect0   ó   € àr   r   )r   r   r   r1   r   r   r   r   r   .   ó   „ ôr   r   c                   ó   — e Zd Zdd„Zy)r%   Nc                  ó   — y r   r   r/   s     r   ÚlistenzStreamServer.listen7   r2   r   r   )r   r   r   r6   r   r   r   r%   r%   5   r3   r   r%   ÚfakeÚcrfakeÚcpfakeN)Ú__doc__Úzope.interface.declarationsr   Útwisted.internet.interfacesr   r   r   r   Útwisted.pluginr   r
   r   r#   r(   r   r%   r7   ÚfakeClientWithReactorÚ"fakeClientWithReactorAndPreferencer   r   r   ú<module>r@      sì   ðñ
õ
 4÷ó õ #ñ ˆWÓ÷ð ó ðñ
 Ð9Ó:ô) *ó )ó ;ð)ñ
 Ð.Ó/ô)�ó )ó 0ð)÷
ñ ñ Ð"Ó#ô�<ó ó $ðñ Ð"Ó#ô�<ó ó $ðñ �&Ó€Ù3°HÓ=Ð Ù%@ÀÓ%JÑ "r   