[Python-checkins] gh-102856: Add missing quote to fix doctest (#104852)

hugovk webhook-mailer at python.org
Wed May 24 06:21:28 EDT 2023


https://github.com/python/cpython/commit/3e97c001711ab68e3d54d65e264cb5c37fefbec0
commit: 3e97c001711ab68e3d54d65e264cb5c37fefbec0
branch: main
author: Hugo van Kemenade <hugovk at users.noreply.github.com>
committer: hugovk <hugovk at users.noreply.github.com>
date: 2023-05-24T13:21:15+03:00
summary:

gh-102856: Add missing quote to fix doctest (#104852)

files:
M Doc/whatsnew/3.12.rst

diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index b410fb242098..9cf10196dcfc 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -157,7 +157,7 @@ same quote as the containing f-string. Let's cover these in detail:
 
     >>> songs = ['Take me back to Eden', 'Alkaline', 'Ascensionism']
     >>> f"This is the playlist: {", ".join(songs)}"
-    'This is the playlist: Take me back to Eden, Alkaline, Ascensionism
+    'This is the playlist: Take me back to Eden, Alkaline, Ascensionism'
 
   Note that before this change there was no explicit limit in how f-strings can
   be nested, but the fact that string quotes cannot be reused inside the



More information about the Python-checkins mailing list