From: David Gilbertson Date: Tue, 4 Jan 2022 09:25:56 +0000 (+1100) Subject: Update old-style strings to f-strings (GH-30384) X-Git-Tag: v3.11.0a4~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bef48837e79712868c096ef4f4692dbf1746b6d1;p=thirdparty%2FPython%2Fcpython.git Update old-style strings to f-strings (GH-30384) Let me know if this sort of change is unwanted... --- diff --git a/Doc/includes/minidom-example.py b/Doc/includes/minidom-example.py index 5ee7682c1927..3b9e9ee2db29 100644 --- a/Doc/includes/minidom-example.py +++ b/Doc/includes/minidom-example.py @@ -42,10 +42,10 @@ def handleSlide(slide): handlePoints(slide.getElementsByTagName("point")) def handleSlideshowTitle(title): - print("%s" % getText(title.childNodes)) + print(f"{getText(title.childNodes)}") def handleSlideTitle(title): - print("

%s

" % getText(title.childNodes)) + print(f"

{getText(title.childNodes)}

") def handlePoints(points): print("") def handlePoint(point): - print("
  • %s
  • " % getText(point.childNodes)) + print(f"
  • {getText(point.childNodes)}
  • ") def handleToc(slides): for slide in slides: title = slide.getElementsByTagName("title")[0] - print("

    %s

    " % getText(title.childNodes)) + print(f"

    {getText(title.childNodes)}

    ") handleSlideshow(dom)