]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-102856: Add missing quote to fix doctest (GH-104852) (#104854)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 24 May 2023 10:21:59 +0000 (03:21 -0700)
committerGitHub <noreply@github.com>
Wed, 24 May 2023 10:21:59 +0000 (10:21 +0000)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/whatsnew/3.12.rst

index 27fbb21c33420a43c9e088ff44b5b8c601661f2a..265c9f84e8fcc0af01ac91fea2271807a918dc16 100644 (file)
@@ -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