diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5e4fb8e --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +kazoo>=2.1 diff --git a/zk-find.py b/zk-find.py index 8035a14..591b35c 100755 --- a/zk-find.py +++ b/zk-find.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # # This is a FIND utility for Zookeeper # @@ -24,7 +25,7 @@ def error(*objs): from kazoo.client import KazooClient from kazoo.client import KazooState from kazoo.exceptions import NoNodeError -from kazoo.handlers.threading import TimeoutError +from kazoo.handlers.threading import KazooTimeoutError as TimeoutError import re def list_children(parent,prog):