Commit 27845c5a authored by Anton Shestakov's avatar Anton Shestakov
Browse files

obslog: use fm.data() instead of fm.write() because it's all templates now

parent 7d0d066329f4
......@@ -509,9 +509,9 @@
effects = _markerseffects([marker])
if effects:
fmteffect = fm.formatlist(effects, b'effect', sep=b', ')
fm.write(b'effects', b'(%s)', fmteffect)
fmteffects = fm.formatlist(effects, b'effect', sep=b', ')
fm.data(effects=fmteffects)
if len(succnodes) > 0:
hexnodes = (nodemod.hex(succnode) for succnode in sorted(succnodes))
nodes = fm.formatlist(hexnodes, b'succnode')
......@@ -514,8 +514,8 @@
if len(succnodes) > 0:
hexnodes = (nodemod.hex(succnode) for succnode in sorted(succnodes))
nodes = fm.formatlist(hexnodes, b'succnode')
fm.write(b'succnodes', b'%s', nodes)
fm.data(succnodes=nodes)
operation = metadata.get(b'operation')
if operation:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment