From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 23 Jun 2025 23:42:04 +0000 (+0200) Subject: [3.14] Fix example according to PEP 750 in "What's new in 3.14" (GH-134727) (GH-135870) X-Git-Tag: v3.14.0b4~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7227aa4bfafaa519867ad59e697c47e78c7a643f;p=thirdparty%2FPython%2Fcpython.git [3.14] Fix example according to PEP 750 in "What's new in 3.14" (GH-134727) (GH-135870) Fix example according to PEP 750 in "What's new in 3.14" (GH-134727) A redundant extra part was written. Added a closing tag, to match the usage in PEP 750. (cherry picked from commit 2793b68f758c10fb63b264787f10d46a71fc8086) Co-authored-by: Vincent Poulailleau --- diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index c1906610932c..7564f4a168e1 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -278,7 +278,7 @@ As another example, generating HTML attributes from data: attributes = {"src": "shrubbery.jpg", "alt": "looks nice"} template = t"" - assert html(template) == 'looks nice' + assert html(template) == 'looks nice' Compared to using an f-string, the ``html`` function has access to template attributes containing the original information: static strings, interpolations, and values