diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-07-26 09:18:21 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-07-26 09:18:21 (GMT) |
commit | 1050d2d0c7730c6c533246bb2404937739a7775c (patch) | |
tree | 68d901cd196aead4df7c3b074ebf2df6e85678e7 /Doc/tutorial | |
parent | 87ec85f4208bf329e6454fd3e2639c613b2b61af (diff) | |
download | cpython-1050d2d0c7730c6c533246bb2404937739a7775c.zip cpython-1050d2d0c7730c6c533246bb2404937739a7775c.tar.gz cpython-1050d2d0c7730c6c533246bb2404937739a7775c.tar.bz2 |
Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting.
Patch by Julien Palard.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 4 | ||||
-rw-r--r-- | Doc/tutorial/interpreter.rst | 4 | ||||
-rw-r--r-- | Doc/tutorial/modules.rst | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index ddc0855..12989b2 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -501,7 +501,9 @@ It could be called like this:: client="John Cleese", sketch="Cheese Shop Sketch") -and of course it would print:: +and of course it would print: + +.. code-block:: none -- Do you have any Limburger ? -- I'm sorry, we're all out of Limburger diff --git a/Doc/tutorial/interpreter.rst b/Doc/tutorial/interpreter.rst index e966085..e8d8e2b 100644 --- a/Doc/tutorial/interpreter.rst +++ b/Doc/tutorial/interpreter.rst @@ -94,7 +94,9 @@ mode*. In this mode it prompts for the next command with the *primary prompt*, usually three greater-than signs (``>>>``); for continuation lines it prompts with the *secondary prompt*, by default three dots (``...``). The interpreter prints a welcome message stating its version number and a copyright notice -before printing the first prompt:: +before printing the first prompt: + +.. code-block:: shell-session $ python3.5 Python 3.5 (default, Sep 16 2015, 09:25:04) diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst index 261a3f3..35db305 100644 --- a/Doc/tutorial/modules.rst +++ b/Doc/tutorial/modules.rst @@ -140,7 +140,9 @@ the end of your module:: you can make the file usable as a script as well as an importable module, because the code that parses the command line only runs if the module is -executed as the "main" file:: +executed as the "main" file: + +.. code-block:: shell-session $ python fibo.py 50 1 1 2 3 5 8 13 21 34 |