<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> from slimta . util import validate_tls <EOL> from . client import SmtpRelayClient <EOL> from . lmtpclient import LmtpRelayClient <EOL> from . . pool import RelayPool <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> class StaticSmtpRelay ( RelayPool ) : <EOL> """<STR_LIT>""" <EOL> _default_class = SmtpRelayClient <EOL> def __init__ ( self , host , port = <NUM_LIT> , pool_size = None , client_class = None , <EOL> tls = None , ** client_kwargs ) : <EOL> super ( StaticSmtpRelay , self ) . __init__ ( pool_size ) <EOL> self . client_class = client_class or self . _default_class <EOL> self . host = host <EOL> self . port = port <EOL> self . client_kwargs = client_kwargs <EOL> self . client_kwargs [ '<STR_LIT>' ] = validate_tls ( tls ) <EOL> def add_client ( self ) : <EOL> return self . client_class ( ( self . host , self . port ) , self . queue , <EOL> ** self . client_kwargs ) <EOL> class StaticLmtpRelay ( StaticSmtpRelay ) : <EOL> """<STR_LIT>""" <EOL> _default_class = LmtpRelayClient <EOL> def __init__ ( self , host = '<STR_LIT:localhost>' , port = <NUM_LIT> , pool_size = None , <EOL> ** client_kwargs ) : <EOL> super ( StaticLmtpRelay , self ) . __init__ ( host , port , pool_size , <EOL> ** client_kwargs ) </s>
