]> granicus.if.org Git - python/commitdiff
Fix spaces/tabs in example.
authorRaymond Hettinger <python@rcn.com>
Thu, 12 Feb 2009 10:19:59 +0000 (10:19 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 12 Feb 2009 10:19:59 +0000 (10:19 +0000)
Modules/itertoolsmodule.c

index 284b9604c84872cd859bd965f6006ae82e9a6b72..75c6e7ed823387abf1d6ff81e0ebed545c68ec52 100644 (file)
@@ -3031,13 +3031,12 @@ PyDoc_STRVAR(count_doc,
 \n\
 Return a count object whose .__next__() method returns consecutive\n\
 integers starting from zero or, if specified, from firstval.\n\
-If step is specified, counts by that interval.\n\
-Same as:\n\
+If step is specified, counts by that interval.  Equivalent to:\n\n\
     def count(firstval=0, step=1):\n\
         x = firstval\n\
-           while 1:\n\
+        while 1:\n\
             yield x\n\
-                   x += step\n");
+            x += step\n");
 
 static PyTypeObject count_type = {
        PyVarObject_HEAD_INIT(NULL, 0)