[Checkins] SVN: zc.zk/trunk/src/zc/zk/README.txt formatting.
Jim Fulton
jim at zope.com
Mon Dec 12 22:14:12 UTC 2011
Log message for revision 123787:
formatting.
Changed:
U zc.zk/trunk/src/zc/zk/README.txt
-=-
Modified: zc.zk/trunk/src/zc/zk/README.txt
===================================================================
--- zc.zk/trunk/src/zc/zk/README.txt 2011-12-12 22:12:04 UTC (rev 123786)
+++ zc.zk/trunk/src/zc/zk/README.txt 2011-12-12 22:14:12 UTC (rev 123787)
@@ -553,7 +553,7 @@
It's common to use an empty string for a host name when calling bind
to listen on all IPv4 interfaces. If you pass an empty host name to
``register_server``, the result of calling ``socket.getfqdn()`` will
-be registered:
+be registered::
>>> zk.register_server('/fooservice/providers', ('', 42))
addresses changed
@@ -672,6 +672,8 @@
using ``zc.zk.parse_tree`` to parse a text tree representation
generated by hand for import, or using the ``export_tree`` method.
+::
+
>>> tree = zc.zk.parse_tree(tree_text)
>>> sorted(tree.children)
['cms', 'lb']
More information about the checkins
mailing list