diff options
Diffstat (limited to 'src/etcd/client.py')
-rw-r--r-- | src/etcd/client.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/etcd/client.py b/src/etcd/client.py index 4dccdd8..4dc9fa1 100644 --- a/src/etcd/client.py +++ b/src/etcd/client.py @@ -285,6 +285,8 @@ class Client(object): sorted (bool): Sort the output keys (alphanumerically) + timeout (int): max seconds to wait for a read. + Returns: client.EtcdResult (or an array of client.EtcdResult if a subtree is queried) @@ -292,6 +294,8 @@ class Client(object): Raises: KeyValue: If the key doesn't exists. + urllib3.exceptions.TimeoutError: If timeout is reached. + >>> print client.get('/key').value 'value' @@ -415,12 +419,16 @@ class Client(object): index (int): Index to start from. + timeout (int): max seconds to wait for a read. + Returns: client.EtcdResult Raises: KeyValue: If the key doesn't exists. + urllib3.exceptions.TimeoutError: If timeout is reached. + >>> print client.watch('/key').value 'value' |