[Python-checkins] Doc: Missing 'f' in an f-string. (GH-9074) (GH-9095)

Victor Stinner webhook-mailer at python.org
Fri Sep 7 05:59:05 EDT 2018


https://github.com/python/cpython/commit/854b740910f20441b6a42c2047d5f0ad0451404e
commit: 854b740910f20441b6a42c2047d5f0ad0451404e
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Victor Stinner <vstinner at redhat.com>
date: 2018-09-07T11:59:00+02:00
summary:

Doc: Missing 'f' in an f-string. (GH-9074) (GH-9095)

(cherry picked from commit 25fa141487e61b94f15289619cb3af764cf65e58)

Co-authored-by: Julien Palard <julien at palard.fr>

files:
M Doc/tutorial/inputoutput.rst

diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst
index dfe4c3849cbe..a92c26681596 100644
--- a/Doc/tutorial/inputoutput.rst
+++ b/Doc/tutorial/inputoutput.rst
@@ -127,7 +127,7 @@ applies :func:`repr`::
    >>> animals = 'eels'
    >>> print(f'My hovercraft is full of {animals}.')
    My hovercraft is full of eels.
-   >>> print('My hovercraft is full of {animals !r}.')
+   >>> print(f'My hovercraft is full of {animals !r}.')
    My hovercraft is full of 'eels'.
 
 For a reference on these format specifications, see



More information about the Python-checkins mailing list