Fix print-zk tool for python3

The print-zk tool still contained python2 style prints.

Change-Id: Ief9cb9e2c76cf682daf34b57a754d4d26446fdc0
This commit is contained in:
Tobias Henkel 2018-11-22 07:09:21 +01:00
parent 447b97f218
commit cacedff80e
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
1 changed files with 3 additions and 3 deletions

View File

@ -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('/')