Make conditionals more Pythonic

This commit is contained in:
2019-06-24 13:37:56 -04:00
parent 93be983b39
commit b52cf01ecc
5 changed files with 76 additions and 76 deletions

View File

@ -28,10 +28,10 @@ import client_lib.ansiprint as ansiprint
# Exists function
def exists(zk_conn, key):
stat = zk_conn.exists(key)
if stat is None:
return False
else:
if stat:
return True
else:
return False
# Child list function
def listchildren(zk_conn, key):