diff options
| author | Ben Bangert <ben@groovie.org> | 2012-08-31 15:46:57 -0700 |
|---|---|---|
| committer | Ben Bangert <ben@groovie.org> | 2012-08-31 15:46:57 -0700 |
| commit | 9af63f7f671db70fb11b93b1bfdfa56046cfb7dd (patch) | |
| tree | 8d5ad97262a818973844b5ae546435bfce91e06e | |
| parent | fd9d4a4fdeb143afecc984499a256ae2822ab9cc (diff) | |
| download | kazoo-9af63f7f671db70fb11b93b1bfdfa56046cfb7dd.tar.gz | |
Fix doc strings on data watcher.
| -rw-r--r-- | kazoo/recipe/watchers.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kazoo/recipe/watchers.py b/kazoo/recipe/watchers.py index d20621e..3aaa608 100644 --- a/kazoo/recipe/watchers.py +++ b/kazoo/recipe/watchers.py @@ -39,14 +39,14 @@ class DataWatch(object): """ def __init__(self, client, path, func=None, allow_session_lost=True): - """Create a children watcher for a path + """Create a data watcher for a path :param client: A zookeeper client :type client: :class:`~kazoo.client.KazooClient` - :param path: The path to watch for children on + :param path: The path to watch for data changes on :type path: str :param func: Function to call initially and every time the - children change. `func` will be called with a + node changes. `func` will be called with a tuple, the value of the node and a :class:`~kazoo.client.ZnodeStat` instance :type func: callable @@ -55,7 +55,7 @@ class DataWatch(object): session is lost. :type allow_session_lost: bool - The path must already exist for the children watcher to + The path must already exist for the data watcher to run. """ @@ -79,7 +79,7 @@ class DataWatch(object): """Callable version for use as a decorator :param func: Function to call initially and every time the - children change. `func` will be called with a + data changes. `func` will be called with a tuple, the value of the node and a :class:`~kazoo.client.ZnodeStat` instance :type func: callable |
