def _adapt_smtp_secure(value):
    if isinstance(value, basestring):
        # a string - wrap it in the tuple
        return (value,)
    if isinstance(value, config.Config):
        assert set(value.keys()) <= set(['keyfile', 'certfile'])
        return (value.keyfile, value.certfile)
    if value:
        return ()
Return a copy of d updated with kwds.
dataset/ETHPy150Open docker/docker-registry/docker_registry/app.py/_adapt_smtp_secure--crossover with--dataset/ETHPy150Open hwaf/hwaf/py-hwaftools/orch/util.py/update_if