Commit 89b1ed4e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8f149d40
......@@ -151,10 +151,10 @@ class ZCtx(object):
raise KeyError("%r not found in value registry" % (vobj,))
# Trees generates tree structures given their topology encoding on input.
# TreesSrv generates tree structures given their topology encoding on input.
# See top-level documentation for details.
@func
def Trees(zstor, r):
def TreesSrv(zstor, r):
zctx = ZCtx(zstor)
defer(zctx.close)
......@@ -247,7 +247,7 @@ def AllStructs(kv1txt, kv2txt, maxdepth, maxsplit, n, seed=None):
# initial kv1 and kv2 states with topologies prepared as ZODB would do natively
patch(ztree, diff({}, kv1), verify=kv1)
if kv1 == {}: ztree._p_changed = True # to avoid empty commit - see Trees
if kv1 == {}: ztree._p_changed = True # to avoid empty commit - see TreesSrv
commit('kv1')
t1struct0 = xbtree.StructureOf(ztree)
......@@ -444,7 +444,7 @@ def cmd_trees(argv):
if len(treev) != 0:
r = six.StringIO('\n'.join(treev))
Trees(zstor, r)
TreesSrv(zstor, r)
# xprint prints msg to stdout and flushes it.
......
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