[issue14101] example function in tertools.count is misindented

New submission from Zbyszek Szmek <zbyszek@in.waw.pl>: Indentation is broken. diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -3221,10 +3221,10 @@ Return a count object whose .__next__() method returns consecutive values.\n\ Equivalent to:\n\n\ def count(firstval=0, step=1):\n\ - x = firstval\n\ - while 1:\n\ - yield x\n\ - x += step\n"); + x = firstval\n\ + while 1:\n\ + yield x\n\ + x += step\n"); ---------- assignee: docs@python components: Documentation, Library (Lib) files: itertools-count-indentation.diff keywords: patch messages: 154084 nosy: docs@python, zbysz priority: normal severity: normal status: open title: example function in tertools.count is misindented type: enhancement versions: Python 3.3 Added file: http://bugs.python.org/file24618/itertools-count-indentation.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14101> _______________________________________

Éric Araujo <merwok@netwok.org> added the comment: Patch LGTM. Raymond, any objection? ---------- components: +Extension Modules -Documentation, Library (Lib) nosy: +eric.araujo, rhettinger stage: -> patch review title: example function in tertools.count is misindented -> example function in tertools.count docstring is misindented versions: +Python 2.7, Python 3.2 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14101> _______________________________________

Mark Lawrence added the comment: As this is a trivial patch could it be applied please? ---------- nosy: +BreamoreBoy _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14101> _______________________________________

Changes by Georg Brandl <georg@python.org>: ---------- resolution: -> duplicate status: open -> closed superseder: -> Intendation issue in example code in itertools.count documentation _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14101> _______________________________________

Éric Araujo <merwok@netwok.org> added the comment: Patch LGTM. Raymond, any objection? ---------- components: +Extension Modules -Documentation, Library (Lib) nosy: +eric.araujo, rhettinger stage: -> patch review title: example function in tertools.count is misindented -> example function in tertools.count docstring is misindented versions: +Python 2.7, Python 3.2 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14101> _______________________________________

Mark Lawrence added the comment: As this is a trivial patch could it be applied please? ---------- nosy: +BreamoreBoy _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14101> _______________________________________

Changes by Georg Brandl <georg@python.org>: ---------- resolution: -> duplicate status: open -> closed superseder: -> Intendation issue in example code in itertools.count documentation _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14101> _______________________________________
participants (4)
-
Georg Brandl
-
Mark Lawrence
-
Zbyszek Szmek
-
Éric Araujo