From: Vincent Poulailleau Date: Mon, 23 Jun 2025 23:36:30 +0000 (+0200) Subject: Fix example according to PEP 750 in "What's new in 3.14" (GH-134727) X-Git-Tag: v3.15.0a1~1204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2793b68f758c10fb63b264787f10d46a71fc8086;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index f0a87a9ada7b..8b20e42d7d8e 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