def _adapt_smtp_secure(value):
 if isinstance(value, basestring):
  return (value,)
 if isinstance(value, config.Config):
  assert (set(value.keys()) <= set(['keyfile', 'certfile']))
  return (value.keyfile, value.certfile)
 if value:
  return ()

def _adapt_smtp_secure ( value ) : if isinstance ( value , basestring ) : return ( value , ) if isinstance ( value , config . Config ) : assert ( set ( value . keys ( ) ) <= set ( [ 'keyfile' , 'certfile' ] ) ) return ( value . keyfile , value . certfile ) if value : return ( )
adapt the value to arguments of smtp .