From 9a340636bbc5da368c88049757bea7779289d4bf Mon Sep 17 00:00:00 2001 From: Vincent Poulailleau Date: Tue, 24 Jun 2025 01:36:30 +0200 Subject: [PATCH] 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 --- Doc/whatsnew/3.14.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index c1906610932cec..7564f4a168e16e 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