[#5] Use proper dict itemiziation

This commit is contained in:
Joshua Boniface 2018-06-26 23:34:39 -04:00
parent 475e7ea0b8
commit 496a818722
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ def writedata(zk_conn, kv):
version = meta.version
new_version = version + 1
zk_transaction = zk_conn.transaction()
for key, data in kv:
for key, data in kv.items():
zk_transaction.set_data(key, data.encode('ascii'))
try:
zk_transaction.check(first_key, new_version)