<s> import xmlrpclib <EOL> class SafeTransportWithCert ( xmlrpclib . SafeTransport ) : <EOL> def __init__ ( self , use_datetime = <NUM_LIT:0> , keyfile = None , certfile = None ) : <EOL> xmlrpclib . SafeTransport . __init__ ( self , use_datetime ) <EOL> self . __x509 = dict ( ) <EOL> if keyfile : <EOL> self . __x509 [ '<STR_LIT>' ] = keyfile <EOL> if certfile : <EOL> self . __x509 [ '<STR_LIT>' ] = certfile <EOL> def make_connection ( self , host ) : <EOL> host_tuple = ( host , self . __x509 ) <EOL> return xmlrpclib . SafeTransport . make_connection ( self , host_tuple ) </s>
