[Python-checkins] cpython (2.7): Fix indentation in doc example.

ezio.melotti python-checkins at python.org
Sun Nov 17 21:09:38 CET 2013


http://hg.python.org/cpython/rev/cc27c0aba18b
changeset:   87215:cc27c0aba18b
branch:      2.7
parent:      87211:ba7d53b5f3de
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Sun Nov 17 22:07:48 2013 +0200
summary:
  Fix indentation in doc example.

files:
  Doc/tutorial/controlflow.rst |  10 +++++-----
  1 files changed, 5 insertions(+), 5 deletions(-)


diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -19,14 +19,14 @@
    >>> x = int(raw_input("Please enter an integer: "))
    Please enter an integer: 42
    >>> if x < 0:
-   ...      x = 0
-   ...      print 'Negative changed to zero'
+   ...     x = 0
+   ...     print 'Negative changed to zero'
    ... elif x == 0:
-   ...      print 'Zero'
+   ...     print 'Zero'
    ... elif x == 1:
-   ...      print 'Single'
+   ...     print 'Single'
    ... else:
-   ...      print 'More'
+   ...     print 'More'
    ...
    More
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list