From 3cc8ef0eb195d5534b47b1b4e66f3df562a2802c Mon Sep 17 00:00:00 2001 From: Aleksandr Vinokurov Date: Thu, 1 Oct 2015 17:13:50 +0300 Subject: [PATCH] Upgrade to kazoo>=2.1, add shebang to file --- requirements.txt | 1 + zk-find.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 requirements.txt 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):