[#5] Use proper dict itemiziation
This commit is contained in:
parent
475e7ea0b8
commit
496a818722
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue