#NEWLINE# def _set_variables( self , host , port , keyfile , certfile , cert_reqs , ssl_version , ca_certs , do_handshake_on_connect , suppress_ragged_eofs ) : #NEWLINE# #INDENT# conf = ConfigHelper ( ) #NEWLINE# self . host = conf . get_valid_value ( host , 'server' , 'host' , conf . DEFAULT_HOST ) #NEWLINE# self . port = int ( conf . get_valid_value ( port , 'server' , 'port' , conf . DEFAULT_PORT ) ) #NEWLINE# self . keyfile = conf . get_valid_value ( keyfile , 'server' , 'keyfile' , cert_reqs . DEFAULT_KEYFILE ) #NEWLINE# self . certfile = conf . get_valid_value ( certfile , 'server' , 'certfile' , conf . DEFAULT_CERTFILE ) #NEWLINE# self . cert_reqs = getattr ( ssl , conf . get_valid_value ( cert_reqs , 'server' , 'cert_reqs' , 'CERT_NONE' ) ) #NEWLINE# self . ssl_version = getattr ( ssl , conf . get_valid_value ( ssl_version , 'server' , 'ssl_version' , conf . DEFAULT_SSL_VERSION ) ) #NEWLINE# self . ca_certs = conf . get_valid_value ( ca_certs , 'server' , 'ca_certs' , None ) #NEWLINE# if ( conf . get_valid_value ( do_handshake_on_connect , 'server' , 'do_handshake_on_connect' , 'True' ) == 'True' ) : #NEWLINE# #INDENT# self . do_handshake_on_connect = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . do_handshake_on_connect = False #NEWLINE# #UNINDENT# if ( conf . get_valid_value ( suppress_ragged_eofs , 'server' , 'suppress_ragged_eofs' , 'True' ) == 'True' ) : #NEWLINE# #INDENT# self . suppress_ragged_eofs = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . suppress_ragged_eofs = False