Fix print-zk tool for python3
The print-zk tool still contained python2 style prints. Change-Id: Ief9cb9e2c76cf682daf34b57a754d4d26446fdc0
This commit is contained in:
parent
447b97f218
commit
cacedff80e
|
@ -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