<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import , division <EOL> from zope . interface . declarations import implementer <EOL> from twisted . plugin import IPlugin <EOL> from twisted . internet . interfaces import ( <EOL> IStreamClientEndpoint , IStreamServerEndpoint , <EOL> IStreamServerEndpointStringParser , <EOL> IStreamClientEndpointStringParserWithReactor ) <EOL> @ implementer ( IPlugin ) <EOL> class PluginBase ( object ) : <EOL> def __init__ ( self , pfx ) : <EOL> self . prefix = pfx <EOL> @ implementer ( IStreamClientEndpointStringParserWithReactor ) <EOL> class FakeClientParserWithReactor ( PluginBase ) : <EOL> def parseStreamClient ( self , * a , ** kw ) : <EOL> return StreamClient ( self , a , kw ) <EOL> @ implementer ( IStreamServerEndpointStringParser ) <EOL> class FakeParser ( PluginBase ) : <EOL> def parseStreamServer ( self , * a , ** kw ) : <EOL> return StreamServer ( self , a , kw ) <EOL> class EndpointBase ( object ) : <EOL> def __init__ ( self , parser , args , kwargs ) : <EOL> self . parser = parser <EOL> self . args = args <EOL> self . kwargs = kwargs <EOL> @ implementer ( IStreamClientEndpoint ) <EOL> class StreamClient ( EndpointBase ) : <EOL> pass <EOL> @ implementer ( IStreamServerEndpoint ) <EOL> class StreamServer ( EndpointBase ) : <EOL> pass <EOL> fake = FakeParser ( '<STR_LIT>' ) <EOL> fakeClientWithReactor = FakeClientParserWithReactor ( '<STR_LIT>' ) <EOL> fakeClientWithReactorAndPreference = FakeClientParserWithReactor ( '<STR_LIT>' ) </s>
