[Checkins] SVN: z3c.batching/trunk/src/z3c/batching/batch.py rst formatting

Christophe Combelles ccomb at free.fr
Sun Oct 12 06:57:49 EDT 2008


Log message for revision 92073:
  rst formatting
  

Changed:
  U   z3c.batching/trunk/src/z3c/batching/batch.py

-=-
Modified: z3c.batching/trunk/src/z3c/batching/batch.py
===================================================================
--- z3c.batching/trunk/src/z3c/batching/batch.py	2008-10-12 10:53:55 UTC (rev 92072)
+++ z3c.batching/trunk/src/z3c/batching/batch.py	2008-10-12 10:57:49 UTC (rev 92073)
@@ -203,12 +203,12 @@
      * a None separator if necessary
      * the last batch
 
-    Example::
+    Example:
 
       >>> from z3c.batching.batch import first_neighbours_last as f_n_l
       >>> batches = range(100) # it works with real batches as well
 
-    We try to get subsets at different levels::
+    We try to get subsets at different levels:
 
       >>> for i in range(0,6):
       ...    f_n_l(batches, i, 2, 2)
@@ -228,7 +228,7 @@
       [0, None, 95, 96, 97, 98, 99]
       [0, None, 96, 97, 98, 99]
 
-    Try with no previous and no next batch::
+    Try with no previous and no next batch:
 
       >>> f_n_l(batches, 0, 0, 0)
       [0, None, 99]
@@ -237,7 +237,7 @@
       >>> f_n_l(batches, 2, 0, 0)
       [0, None, 2, None, 99]
 
-    Try with only 1 previous and 1 next batch::
+    Try with only 1 previous and 1 next batch:
 
       >>> f_n_l(batches, 0, 1, 1)
       [0, 1, None, 99]
@@ -248,7 +248,7 @@
       >>> f_n_l(batches, 3, 1, 1)
       [0, None, 2, 3, 4, None, 99]
 
-    Try with incoherent values::
+    Try with incoherent values:
 
       >>> f_n_l(batches, 0, -4, -10)
       Traceback (most recent call last):



More information about the Checkins mailing list