[Checkins] SVN: zope.interface/branches/tseaver-no_2to3/docs/ Ensure that all doctest blocks get recognized by Sphinx.

Tres Seaver cvs-admin at zope.org
Fri Apr 6 01:14:50 UTC 2012


Log message for revision 124978:
  Ensure that all doctest blocks get recognized by Sphinx.

Changed:
  U   zope.interface/branches/tseaver-no_2to3/docs/README.rst
  U   zope.interface/branches/tseaver-no_2to3/docs/README.ru.rst
  U   zope.interface/branches/tseaver-no_2to3/docs/adapter.rst

-=-
Modified: zope.interface/branches/tseaver-no_2to3/docs/README.rst
===================================================================
--- zope.interface/branches/tseaver-no_2to3/docs/README.rst	2012-04-05 20:37:29 UTC (rev 124977)
+++ zope.interface/branches/tseaver-no_2to3/docs/README.rst	2012-04-06 01:14:45 UTC (rev 124978)
@@ -232,7 +232,7 @@
 should not assume that a new object is created.
 
 Using implementer also works on callable objects. This is used by
-zope.formlib, as an example.
+zope.formlib, as an example::
 
   >>> class yfactory:
   ...     def __call__(self, y):
@@ -248,7 +248,7 @@
 XXX: Double check and update these version numbers:
 
 In zope.interface 3.5.2 and lower, the implementer decorator can not
-be used for classes, but in 3.6.0 and higher it can:
+be used for classes, but in 3.6.0 and higher it can::
 
   >>> Foo = zope.interface.implementer(IFoo)(Foo)
   >>> list(zope.interface.providedBy(Foo()))
@@ -756,6 +756,8 @@
 __adapt__
 ---------
 
+::
+
   >>> class I(zope.interface.Interface):
   ...     pass
 

Modified: zope.interface/branches/tseaver-no_2to3/docs/README.ru.rst
===================================================================
--- zope.interface/branches/tseaver-no_2to3/docs/README.ru.rst	2012-04-05 20:37:29 UTC (rev 124977)
+++ zope.interface/branches/tseaver-no_2to3/docs/README.ru.rst	2012-04-06 01:14:45 UTC (rev 124978)
@@ -234,7 +234,7 @@
 XXX: Double check and update these version numbers, and translate to russian:
 
 In zope.interface 3.5.1 and lower, the implementer decorator can not
-be used for classes, but in 3.5.2 and higher it can:
+be used for classes, but in 3.5.2 and higher it can::
 
   >>> Foo = zope.interface.implementer(IFoo)(Foo)
   >>> list(zope.interface.providedBy(Foo()))
@@ -737,6 +737,8 @@
 __adapt__
 ---------
 
+::
+
   >>> class I(zope.interface.Interface):
   ...     pass
 

Modified: zope.interface/branches/tseaver-no_2to3/docs/adapter.rst
===================================================================
--- zope.interface/branches/tseaver-no_2to3/docs/adapter.rst	2012-04-05 20:37:29 UTC (rev 124977)
+++ zope.interface/branches/tseaver-no_2to3/docs/adapter.rst	2012-04-06 01:14:45 UTC (rev 124978)
@@ -120,7 +120,7 @@
 
 We can ask if there is an adapter registered for a collection of
 interfaces. This is different than lookup, because it looks for an
-exact match.
+exact match::
 
   >>> print registry.registered([IR1], IP1)
   11
@@ -199,7 +199,7 @@
 When the adapter factory produces `None`, then this is treated as if no
 adapter has been found. This allows us to prevent adaptation (when desired)
 and let the adapter factory determine whether adaptation is possible based on
-the state of the object being adapted.
+the state of the object being adapted::
 
   >>> def factory(context):
   ...     if context.name == 'object':
@@ -274,7 +274,7 @@
 -------------
 
 At some point it was impossible to register dictionary-based adapters due a
-bug. Let's make sure this works now:
+bug. Let's make sure this works now::
 
   >>> adapter = {}
   >>> registry.register((), IQ, '', adapter)
@@ -489,7 +489,7 @@
   ['sub_1', 'sub12 1', 'sub12 2']
 
 If we don't specify a value, then all subscribers matching the given
-interfaces will be unsubscribed:
+interfaces will be unsubscribed::
 
   >>> registry.unsubscribe([IR1], IP2)
   >>> registry.subscriptions([IR1], IP1)



More information about the checkins mailing list