From: Raymond Hettinger Date: Thu, 12 Feb 2009 10:19:59 +0000 (+0000) Subject: Fix spaces/tabs in example. X-Git-Tag: v3.1a1~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6dfff197431b861dd85d07ee5ab86c291d4a8541;p=python Fix spaces/tabs in example. --- diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 284b9604c8..75c6e7ed82 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -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)