Merge "Fix print-zk tool for python3"
This commit is contained in:
commit
f116826d2b
@ -40,12 +40,12 @@ def join(a, b):
|
||||
|
||||
def print_tree(node):
|
||||
data, stat = zk.client.get(node)
|
||||
print "Node: %s %s" % (node, stat)
|
||||
print("Node: %s %s" % (node, stat))
|
||||
if data:
|
||||
print data
|
||||
print(data)
|
||||
|
||||
for child in zk.client.get_children(node):
|
||||
print
|
||||
print()
|
||||
print_tree(join(node, child))
|
||||
|
||||
print_tree('/')
|
||||
|
Loading…
Reference in New Issue
Block a user