def etcd(url=DEFAULT_URL, mock=False, **kwargs):
if mock:<EOL><INDENT>from etc.adapters.mock import MockAdapter<EOL>adapter_class = MockAdapter<EOL><DEDENT>else:<EOL><INDENT>from etc.adapters.etcd import EtcdAdapter<EOL>adapter_class = EtcdAdapter<EOL><DEDENT>return Client(adapter_class(url, **kwargs))<EOL>
Creates an etcd client.